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

3

u/LaurieCheers Dec 23 '11 edited Dec 23 '11

Yes - your lines x = 0 and x = 100 are doing two different operations, so there should be some kind of syntactic difference between them.

Otherwise, there is a potential for subtle bugs, and some day, some poor schlub will curse your name as they try to figure out what broke their program.