News for hackers. Stuff that matters.
Re:Monads are a class of hard drugs by newaccount2021 on Monday July 11, 2022 @11:06AM (#32057134)
> So monads are from functional programming, right?

kinda.

they are needed where pure functional and lazy evaluation converge

in a pure, lazy language, you compute things based on dataflow

but what is the dataflow of a keystroke from the keyboard? you need an abstraction to get stuff like this into a pure, lazy programming environment

that's all monads are...abstractions to solve a problem

There are no comments on this comment yet.