r/programming • • Jul 25 '13

CoffeeScript's Scoping is Madness

http://donatstudios.com/CoffeeScript-Madness
207 Upvotes

315 comments sorted by

View all comments

Show parent comment

3

u/donatj Jul 25 '13

Well you have two functions in the same scope, they can both have their own x, but if you define x above the functions, thay're magically both using that x instead.