3 ms·
> One of my biggest gripes with Rust (and other languages) is lack of a good monad abstraction (and accompanying syntactic sugar). But I also acknowledge that t
by HKH2 2y ago
> One of my biggest gripes with Rust (and other languages) is lack of a good monad abstraction (and accompanying syntactic sugar). But I also acknowledge that this is a "I have done too much category theory" problem and and_then is probably a more reasonable name to those not familiar with this particular area of maths.
I'm happy that Rust has iterators and I don't have to think about what a monad is at all.
- hifromwork 2y agoIterators are not the same things as monads. Iterators are not like burritos.
- HKH2 2y agoI know. I just remember the list monad is one of the few monads I actually used.