2 ms·
Don't you mean clojure has a MORE robust indication of scope than other languages? In clojure you can nest lets, and it is very obvious when the binding is out
by JackMorgan 13y ago
Don't you mean clojure has a MORE robust indication of scope than other languages? In clojure you can nest lets, and it is very obvious when the binding is out of scope, but in c-style languages, once bound, they stay bound till the end of the function.
- TylerE 13y agoNope, Nimrod (at least) has full lexical scopes if you want proc foo(x: int): int = let z = x * 2 #z visible block: let y = z * 4 #z & y visible let foo = 3 #z and foo visible, y out of scope
- JackMorgan 13y agoI said "c-style", not ML style.