3 ms·
One of the most powerful things about Erlang is that there is no state other than what you are passed in locally (of course, there are still side-effect dumps,
by mml 11y ago
One of the most powerful things about Erlang is that there is no state other than what you are passed in locally (of course, there are still side-effect dumps, like databases & files, but those can be well-managed behind gen_server).
This property makes Erlang programs incredibly easy to reason about and test.
- rdtsc 11y agoAgree with that. Makes it very nice jumping in understanding a complicated system -- because it is obvious how state is mutated by looking at the current function. In a typical state heavy OO, I found I am lost more often because I have no idea what the current state is and how it got to that state if it is broken when debugging.