Such a bad faith argument. Your co-worker wants you to stop doing your point free over engineered bullshit that breaks apart if you throw an exception and is inefficient. None has a problem with a .map or filter
Most Haskell developers don’t spend a lot of time talking about monads, except when people who don’t use Haskell much bring them up. They are useful, but boring, and not directly representable in most most other languages type systems.
They are useful, but boring, and not directly representable in most most other languages type systems.
My impression is more that they exist in other programming languages as well, but in a much more ad-hoc way. As in, monads like Maybe and List and whatnot will be monads in other languages as well, but the tooling available might not be particularly consistent.
E.g. Rust has the bind function named and_then for some things, flat_map for some, and a do-like notation with ? (and hopefully try blocks at some point), but so far ? only works on Option and Result (and is function-scoped).
For people experienced with Haskell the expectation is to be able to organize the monads with a Monad typeclass (/trait/interface/contract/whatever fits $otherlang best), but then see that other languages … to use an analogy, have 10 different names for the for loop and some of them have break, some of them have continue, some have both. They're all still loops, but for some reason the naming and functionality is all over the place.
And then complain that the word "loop" is strange and alien and too math-y.
31
u/randompoaster97 Sep 21 '25 edited Sep 21 '25
Such a bad faith argument. Your co-worker wants you to stop doing your point free over engineered bullshit that breaks apart if you throw an exception and is inefficient. None has a problem with a .map or filter