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
6
u/bobindashadows Dec 23 '11
The concern isn't that it's silly to add a variable to the top scope, it's that whenever you do add a variable to an upper scope, you have to stop to think "wait - did I use this variable name anywhere else?" If you ignore that possibility, you can break other functions.