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
3
u/LaurieCheers Dec 23 '11 edited Dec 23 '11
Yes - your lines
x = 0andx = 100are doing two different operations, so there should be some kind of syntactic difference between them.Otherwise, there is a potential for subtle bugs, and some day, some poor schlub will curse your name as they try to figure out what broke their program.