|
|
|
|
|
by zohebv
5315 days ago
|
|
Monads are not simply a tool for managing side-effects. Why would you consider parser combinator/List Monads useless in a language with unrestricted side effects? Writing monads without sugar becomes clumsy very quickly and monads have been demonstrated to be useful innumerable times, why wouldn't you support some syntactic sugar for it? |
|
However, if you'll take a look at the example monad code, the bind and return methods themselves use side effects. I think that speaks for itself.