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
5
u/bobindashadows Dec 23 '11
The point being discussed in this thread is that the lack of distinction you describe means you can change the semantics of code in a nested scope by adding an assignment in an outer scope. Typically this happens by accident because we like to use simple variable names that are relevant to our domain:
userfor example is a common variable name you might accidentally introduce in an outer scope.