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

4

u/kamatsu Jul 26 '13

I'm talking about the semantics of coffeescript, which already has different scoping to javascript, and uses functions to produce scopes all the time. So, Javascript doesn't enter into it at all.

This is exploiting the fact that function parameters (unlike locally declared/defined/used variables) can shadow other variables in coffeescript.

-1

u/reaganveg Jul 26 '13

Well I guess I have no idea what point you're making.