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
4
u/ef4 Dec 23 '11
Bound names are a scarce resource. Not because you'll run out of them, but because the reader can only keep a small number of them in mind at a time.
If you have enough names in scope that you're accidentally reusing them, you're already in trouble, whether the scoping rules help you compound the problem or not.
And the data flow in this function is way too byzantine for my taste
I'm not at all surprised that code like this leads to subtle bugs, no matter what scoping rules are in play.