7 ms·
That's correct, I love the actor system in Erlang, and I wish I had access to it in every other language I've used. Building multi-threaded applications with f
by timje1 13y ago
That's correct, I love the actor system in Erlang, and I wish I had access to it in every other language I've used.
Building multi-threaded applications with functional programming forced me to write pure functions - or close enough, Erlang does have some side-effects but this is just to make it more useable than the mostly academic Haskell.
I've carried this approach into C# and Java, and typically end up with methods that fit a multi-threaded paradigm by default because of their lack of state. As a freebie, they can be effortlessly unit tested by mocking their direct parameters and testing the return values (no need to mock or test state).