4 ms·
Then why not have both? Applicative Functors have both `fmap` and `<$>`. `>>=` could easily be an alias of `flatMap` or `bind` or whatever.
by adamwk 11y ago
Then why not have both? Applicative Functors have both `fmap` and `<$>`. `>>=` could easily be an alias of `flatMap` or `bind` or whatever.
- chongli 11y agoI'm right there with you. I'm a Haskell user; I love user-definable operators.
- lmm 11y agoBecause code is read more than it's written; multiple ways of writing the same thing makes it easier to write but harder to read.
- dragonwriter 11y agoMultiple ways of writing the same thing makes it easier to read, often, because you are more free to use the form that is more readable and intuitive in context; that's one reason why natural languages (including written languages) tend to have multiple ways of expressing the same ideas.