[PROPOSAL] "use" keyword

Michaël Rouges michael.rouges at gmail.com
Fri Jul 25 13:57:10 PDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140725/386fb83a/attachment.html>


More information about the es-discuss mailing list