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
-1
u/showellshowell Dec 23 '11
The nice thing about CoffeeScript's scoping is that there is really no distinction between declaration, assignment, and reference. A variable's scope is entirely determined by its lexical placement. This makes it very easy to reason about CS programs and avoid bugs.