r/programming • u/zumpiez • Dec 22 '11
The Problem with Implicit Scoping in CoffeeScript
http://lucumr.pocoo.org/2011/12/22/implicit-scoping-in-coffeescript/
83
Upvotes
r/programming • u/zumpiez • Dec 22 '11
View all comments
Show parent comment
1
u/ctrldavid Dec 23 '11 edited Dec 23 '11
One possibility would be to have a 'strict' variant of the function syntax, where you explicitly list the variables you wish to close over. I believe c++11 does something similar.
which would compile to something like: