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.
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.