|
|
|
|
|
by AnimalMuppet
4270 days ago
|
|
Here's the thing that the immutable folks get absolutely right: Constrain your state space or die. So FP fits pretty much every place it helps you do that. Even in embedded systems, is it useful to have functions that don't depend on state? Can they simplify design, reasoning, and testability? Certainly. So even in the domains I mentioned, you can do FP to the extent that the problem domain allows, and benefit from the smaller state space. My quarrel is with the "you must use it everywhere or you're just an ignorant heathen" zealots, not with FP itself. |
|
http://ivorylang.org/ivory-introduction.html