2 ms·
I benefit from functional programming without sum types in Elixir. You also failed to mention immutability. Immutability permits trivial concurrency without re
by pmarreck 2y ago
I benefit from functional programming without sum types in Elixir.
You also failed to mention immutability. Immutability permits trivial concurrency without requiring mutex lock semantics. I'd call that a massive benefit, especially considering how much load a Phoenix server can handle.
- netbioserror 2y agoReferentially transparent functions naturally have immutable inputs and outputs, so that's implicit. But it's often useful to be able to write mutation-based algorithms within a function, so in that context I'm less concerned, so long as the size and scope of the function is constrained.
- pmarreck 2y ago> But it's often useful to be able to write mutation-based algorithms within a function I know. Quicksort comes to mind. But you then lose a guarantee. Might not make a difference practically, though (which presumably is what Rust's design banks on).