lexical for-in/for-of loose end
Allen Wirfs-Brock
allen at wirfs-brock.com
Fri Feb 3 10:52:47 PST 2012
On Feb 3, 2012, at 8:46 AM, Jason Orendorff wrote:
> My attempt at a for-let desugaring is:
> https://gist.github.com/1730064
yes, similar to https://mail.mozilla.org/pipermail/es-discuss/2008-October/007819.html
the real issue with per iteration binding and for(;;) is closure capture in the (;;). This is admirably rare, but your definition (and Mark's) means that when it occurs it is unlikely to do what the programmer intended.
Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120203/1c6ff01d/attachment-0001.html>
More information about the es-discuss
mailing list