4 ms·
You don't need do notation in an imperative language, though.
by tylerhou 8y ago
You don't need do notation in an imperative language, though.
- piinbinary 8y agoDo notation can act like an imperative language, but it can also do a lot of things imperative languages can't (e.g. the list monad, or the continuation monad).
- imh 8y agoYou don't need the IO or state monads in other languages, but that's not the only useful monad. Applicative functors with their own do notation are pretty cool too.