Re:Elixir concepts for Go developers
by phamilton on Saturday October 17, 2015 @11:08PM
(#10407070)
> in proper functional languages data is immutable. Once you have set a variable you can not change it.
Immutability != single assignment. Two separate concepts, often confused. Elixir is immutable but allows variable shadowing, in which a new variable with the same name is created and the old variable is tossed.
Immutability != single assignment. Two separate concepts, often confused. Elixir is immutable but allows variable shadowing, in which a new variable with the same name is created and the old variable is tossed.