r/programming • • Dec 22 '11

The Problem with Implicit Scoping in CoffeeScript

http://lucumr.pocoo.org/2011/12/22/implicit-scoping-in-coffeescript/
83 Upvotes

116 comments sorted by

View all comments

Show parent comment

2

u/LaurieCheers Dec 23 '11

Oh, and a second option: completely forbid assigning to nonlocal variables.

Since this is Javascript, the programmer can easily store their data in an object, which can be reassigned from anywhere.