2 ms·
It's neat that Ruby has programmable syntax like this, but Haskell's comprehensions are one of its worst syntactic features IMHO. They're inherently non-compos
by tome 14y ago
It's neat that Ruby has programmable syntax like this, but Haskell's comprehensions are one of its worst syntactic features IMHO. They're inherently non-composable.
- nimish 14y agoThey're equivalent to do-notation in the List monad so as long as you don't really need the inline syntax you can just mechanically translate it to do nation and back. And with -XMonadComprehensions you can have the compiler do that for a whole bunch more Monads.
- surement 14y agoIt's also possible to just use Applicative with <*> and <$>