|
|
|
|
|
by superlucky84
163 days ago
|
|
It’s definitely monad-adjacent. The main difference is that SideEffect isn’t a compositional context — there’s no bind/flatMap, and composition intentionally stops once it appears.
It’s meant as an explicit early-exit signal in pipe-first code, not a general computation container. |
|
The point of monads is that they solve this exact category of problem in the simplest possible way.