r/programming • • Jul 25 '13

CoffeeScript's Scoping is Madness

http://donatstudios.com/CoffeeScript-Madness
207 Upvotes

315 comments sorted by

View all comments

Show parent comment

1

u/seruus Jul 26 '13

All variables are scoped as usual, the only difference is that there is no shadowing, so if you refer to a variable with the same name as a global variable inside a function, you will access the global one, not shadow it.