Hacker News new | ask | show | jobs
by gcv 5287 days ago
It's worth pointing out that JavaScript 1.7 resolves this mess by introducing block scoping using the "let" keyword. It works just like it does in Scheme, Common Lisp, and Clojure (i.e., correctly). Not supported in anything except Firefox, unfortunately.
1 comments

... and Standard ML, OCaml, Haskell, Smalltalk, etc
... and Perl except its called my instead of let