Re:Lovely Week with Elixir
by overkalix on Wednesday May 20, 2020 @05:39PM
(#23252144)
Isn't that the basis/point of the actor model? Actors can message each other and processing the message can trigger state mutation of the recipient, but they can't directly mutate each other.
[ Parent
| on HN ]
All data is immutable on the BEAM with a few exceptions, so no mutation within actors.
No, that's not true. Actors in elixir/erlang mutate their state through tail call recursion through the loop function.