3 ms·
I think the position that do-notation is harmful is nowadays in the minority. Personally, I prefer it to long chains of monadic operators. It proved so conveni
by danidiaz 6y ago
I think the position that do-notation is harmful is nowadays in the minority. Personally, I prefer it to long chains of monadic operators.
It proved so convenient that there are extensions like "ApplicativeDo" that let you use do-notation in contexts other than monadic: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#extension-ApplicativeDo https://downloads.haskell.org/~ghc/latest/docs/html/users_gu...
> Imperative programming is the most natural thing for people. "Do this, then that, then that, in that order."
I'm not sure. For example, do users of Excel really care in which order the cells are calculated, beyond the order imposed by the data dependencies they have defined?