Exploring the Power of Monads
You may have heard the terms monads as a reference to something very hard to understand. In a famous keynote, Douglas Crockford referred to them as cursed:[42]
The monad in addition to it being useful, it is also cursed and the curse of the monad is that once you get the epiphany, once you understand—“oh that’s what it is”—you lose the ability to explain it to anybody.
Once you understand functors, monads are just a natural follow up, as monads are essentially a specific type of functor that can be “combined” together. Without a solid understanding of functors, comprehending monads can be challenging. I suspect that much of the “curse” derives from trying to understand monads without having fully digested functors. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access