10 ms·
folding over a monad (or any other combinator) doesn't require extra reasoning or anything clever, that's the point.
by qppo 6y ago
folding over a monad (or any other combinator) doesn't require extra reasoning or anything clever, that's the point.
- 1tCKV3QfIo 6y agoIt shouldn't, but it does to people who get discouraged because they aren't having instant success. It's like anything that results in short-term regression convices them it's too complex for them to learn.
- JadeNB 6y agoI think HelloNurse's point was less that a fold is inherently clever or subtle (as you say, it isn't), and more that, if there is something clever or subtle involved, the lesser verbosity of the fold makes it easier to see than would a more familiar, boilerplate-heavy approach in which the clever or subtle point could be lost.
- chrischen 6y agoIt does if you are unfamiliar to the pattern. It probably has more to do with experience with the patterns used rather than readability.