2 ms·
LINQ is another clear win for monads. There is more to LINQ than monads, of course, but they contribute to the power of the library. I'm also fond of of the da
by mumblemumble 7y ago
LINQ is another clear win for monads. There is more to LINQ than monads, of course, but they contribute to the power of the library.
I'm also fond of of the data generation DSLs in property testing libraries, which tend to lean heavily on monads.
I continue to find that, outside of lazy functional programming, where you need them to live, monads are at their best when they're used in understated ways where the pattern may not even be mentioned by name. All too often, they end up feeling more like something Rodney Dangerfield's character from Caddyshack would use to play code golf.