Re:Why Reliability Demands Functional Programming
by yunnpp on Sunday December 28, 2025 @02:14PM
(#46413582)
Help me with a tl;dr here, but are effects just monads?
Re:Why Reliability Demands Functional Programming
by brabel on Sunday December 28, 2025 @05:12PM
(#46415039)
Great question! But no, they are not the same, despite some similarities.
In Unison, effects are called abilities, and they wrote a very good post explaining the differences!
https://www.unison-lang.org/docs/fundamentals/abilities/for-...
In summary: both have advantages and disadvantages. Which one is "better" depends on which factors you value more.
Even purity is not something exclusive to FP, D and Nim also support separating pure from impure functions. And if you ask me, the reason not many other languages have support for that is that in practice, it has been demonstrated again and again that it’s just not nearly as useful as you may think. Effects, as in Unison and Flix, generalizes the concept to include many more concepts than just purity and may perhaps prove more useful in general purpose programming, but the jury is still out on this.