3 ms·
Do notation in Haskell, Scala etc. Nothing else comes close
by domlebo70 8y ago
Do notation in Haskell, Scala etc. Nothing else comes close
- tylerhou 8y agoYou 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.