[PROPOSAL] "use" keyword

Michaël Rouges michael.rouges at gmail.com
Fri Jul 25 11:52:34 PDT 2014

Hi all,

There is any plan around un functionnality like the "use" keyword, in PHP.

Why something like that? Because, in JS, there is no way to inject some
without touch the this object known in a function.

The lone possible way is with ownmade functions, in the same context, by :

`var test,

fn = new Function('value', 'return function (){console.log(value);}');


Really boring to share some private variables...

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/bc57ac27/attachment.html>

More information about the es-discuss mailing list