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/redalastor Dec 23 '11
Take a look at coco, it's a fork that aims to fix things it consider broken in coffeescript.
The way it works with regard to scoping is that = means new variable and := means reassign to an existing variable.
This also means that this:
Will result in a compile time error because of the typo.