3 ms·
Honestly, it seems like the common denominator for all this confusion is Haskell, and specifically its IO system, not the monad interface itself. E.g., lots of
by 12_throw_away 6mo ago
Honestly, it seems like the common denominator for all this confusion is Haskell, and specifically its IO system, not the monad interface itself. E.g., lots of languages have something like an "Iterable" interface, which - while it may be non-trivial for beginners to learn - absolutely does not require tortured metaphors to explain it. No one has ever needed burritos to explain Result::and_then [1].
[1] https://doc.rust-lang.org/std/result/enum.Result.html#method.and_then https://doc.rust-lang.org/std/result/enum.Result.html#method...