[PROPOSAL] "use" keyword

Andrea Giammarchi andrea.giammarchi at gmail.com
Fri Jul 25 13:59:10 PDT 2014


1. I don't understand what you are trying to do and why
2. I don't think any of this woul dhave been solved anyway with "use" ,
neither in PHP

Hope others can help more.

Best Regards


On Fri, Jul 25, 2014 at 1:57 PM, Michaël Rouges <michael.rouges at gmail.com>
wrote:

> Um, no, I was thinking something like :
>
> ```
> var fn;
>
> fn = function fn() {
>     // After the context is attached fn scope already knows "shared"
> };
>
> (function () {
>     var shared;
>
>     shared = 'message';
>
>     fn.attachContext();
> }());```
>
>
> Michaël Rouges - https://github.com/Lcfvs - @Lcfvs
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140725/3723cf96/attachment.html>


More information about the es-discuss mailing list