3 ms·
> So monads are from functional programming, right? kinda. they are needed where pure functional and lazy evaluation converge in a pure, lazy language, you c
by newaccount2021 4y ago
> 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