3 ms·
I did not misunderstand. You're calling renaming something mutation. It isn't. You're referring to static single assignment. This has been covered before in mo
by knewter 10y ago
I did not misunderstand. You're calling renaming something mutation. It isn't.
You're referring to static single assignment. This has been covered before in more detail than I care to go into.
- rdtsc 10y ago> You're calling renaming something mutation. It isn't. I think you are confused though ;-) There is no renaming -- x=1, then x=2. Nothing was renamed. x wasn't renamed, it is still variable x. 1 and 2 wasn't renamed, it is still 1 and 2 (could have been a map, or list for example). So what do you think was renamed there? > You're referring to static single assignment. No, I am referring to immutable variables. Variables are not changing, they are immutable in Erlang. In Elxir variables change, they can be assigned different values later in a function. If that is not a change i.e. a mutation I don't know what is.