Monads are too powerful: The Expressiveness Spectrum
Okay, so you and I both know monads are great, they allow us to
sequence effects in a structured way and are in many ways a super-power
in the functional-programming toolkit. It's likely none of us would have
even heard of Haskell without them.
It's my opinion, though, that monads are actually too
powerful for their own good. Or to be more clear, monads are more
expressive than they need to be, and that we're paying
hidden costs to gain expressive power that we rarely, if ever, actually
use.
In ...
Read more at chrispenner.ca