`this` inside modules
Kevin Smith
zenparsing at gmail.com
Mon Jun 9 09:17:42 PDT 2014
> Just another related issue: in Traceur code we use 'this' in modules to
> mean 'global', because in modules we have no other way to say 'global' in
> code designed to work in browsers and node.
>
Right - I do the same. I think leaving "this" to mean global would be just
fine: there's no obvious advantage to changing this aspect of the design,
this late in the game. And if there's no obvious advantage, then we're
just churning.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140609/084829f8/attachment.html>
More information about the es-discuss
mailing list