MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1j1cw7/coffeescripts_scoping_is_madness/cbaedjg/?context=3
r/programming • u/donatj • Jul 25 '13
315 comments sorted by
View all comments
Show parent comment
1
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.
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.