2 ms·
I don't think your explanation really makes it clear how list is also a monad, or how async is a monad. Edit: should have also mentioned IO here. It also misse
by tsimionescu 4y ago
I don't think your explanation really makes it clear how list is also a monad, or how async is a monad. Edit: should have also mentioned IO here.
It also misses the point about what having support in your language for monads actually buys you - this is in fact what I've always missed: some examples of operations that apply to any monad, which would motivate why I want Monad to be a type in itself. The only example I ever grokked is Haskell's do notation, but that is not that compelling, being compiler magic and not something I could write myself too easily.