News for hackers. Stuff that matters.
Re:Why CoffeeScript Isn't the Answer by implicit on Sunday March 30, 2014 @05:31PM (#7498036)
I agree that shadowing is bad.

Implicitly scoping variables to their lexically-outermost point of use is a terrible solution, though: changing anything in any outer scope can completely change the meaning of code in all nested scopes. That's really really bad.

A much better syntax would is to require the 'var' keyword to denote the scope of every variable, but reject shadowed symbols at compile time.

There are no comments on this comment yet.