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
-2
u/showellshowell Dec 23 '11
It's actually pretty easy, in practice, to manage lexical scopes in CoffeeScript. At outer scopes, use long names that don't have false cognates. Once you do that, it's easy to introduce variables at inner scopes that won't accidentally collide with outer scopes. If you have small files, you can do this all in your head. If you have large files, you can use your editor's search functionality to look for false cognates.