3 ms·
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, Commo
by gcv 15y 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.
- swannodette 15y ago... and Standard ML, OCaml, Haskell, Smalltalk, etc
- draegtun 15y ago... and Perl except its called my instead of let