News for hackers. Stuff that matters.
Re:Motivation – Keli Language by qppo on Monday August 31, 2020 @01:12PM (#24333563)
folding over a monad (or any other combinator) doesn't require extra reasoning or anything clever, that's the point.
Re:Motivation – Keli Language by JadeNB on Monday August 31, 2020 @02:55PM (#24334742)
I 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.
Re:Motivation – Keli Language by chrischen on Monday August 31, 2020 @04:33PM (#24335625)
It does if you are unfamiliar to the pattern. It probably has more to do with experience with the patterns used rather than readability.