Y
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
joncampbelldev
3216 days ago
well clojure does pass by reference, but the reference is to something that cannot be changed (i.e. a persistent data structure)
link
kqr
3216 days ago
Unification and assignment are very different concepts, though, with only fleeting similarity in some cases.
link
lightbyte
3216 days ago
Mildly off-topic: automatically shadowing bindings is one of my favorite changes elixir made to erlang
link