by grumpyprole · 4y ago · 0 comments
Monads are not the only way of tracking effects in the type, but they are one way. For example, Java has "checked exceptions", which also represent an effect in the type system.
Monads also allow one to assemble a computational ready for execution later. One can therefore write an Async library, without needing baked-in language support.