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/jashkenas Dec 22 '11
Nope -- scoping is lexical to the file. You can arrange all of your imports in any order, and it will work the same way. Scoping is similarly insensitive to the existence (or lack thereof) of global variables. It's all about the pure lexical scope within the file you're looking at.