News for hackers. Stuff that matters.
Re:Functors and Monads for People Who Have Read Too Many “Tu... by alephu5 on Saturday June 26, 2021 @11:02AM (#27642453)
There are many examples of monadic patterns used in other languages, in particular to encapsulate failure or nullable values. I've also seen a lot of codebases that have implemented a custom "pipeline" class that can be composed together, such that some transformation or effect occurs every time a value passes from one pipeline to another. These are usually monads too, allowing for some minor deviations from the formal definition.

Nevertheless language ecosystems outside Haskell, scala and F# don't recognise this as a general programming pattern, although given the current direction towards FP in the JavaScript and rust communities I think it's a matter of time.

There are no comments on this comment yet.