Technically (as many other languages do) CoffeeScript uses lexical scoping with implicit scope declaration. The issue is the latter, and the way it infers scope.
I don't think scope inference is a good idea to start with, but the way CoffeeScript does it is almost the worst possible way (the worst one being javascript's hey-you-did-not-declare-that-here-is-a-new-global-for-you).
View all comments
Show parent comment
5
u/masklinn Jul 26 '13
Technically (as many other languages do) CoffeeScript uses lexical scoping with implicit scope declaration. The issue is the latter, and the way it infers scope.
I don't think scope inference is a good idea to start with, but the way CoffeeScript does it is almost the worst possible way (the worst one being javascript's hey-you-did-not-declare-that-here-is-a-new-global-for-you).