Hacker News new | ask | show | jobs
by frobozz 3216 days ago
I see. When I see "immutable", I think of Prolog and Erlang (e.g. once X is 6, X can't be matched to 5 in the same scope) rather than languages that simply prefer byval over byref.
3 comments

well clojure does pass by reference, but the reference is to something that cannot be changed (i.e. a persistent data structure)
Unification and assignment are very different concepts, though, with only fleeting similarity in some cases.
Mildly off-topic: automatically shadowing bindings is one of my favorite changes elixir made to erlang