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
2
u/LaurieCheers Dec 23 '11
Oh, and a second option: completely forbid assigning to nonlocal variables.
Since this is Javascript, the programmer can easily store their data in an object, which can be reassigned from anywhere.