2 ms·
Nice thing about Monads in JS with tools like neverthrow is that you can create the Monad boundary where you like. It becomes very similar to try-catch excepti
by jayy-lmao 1y ago
Nice thing about Monads in JS with tools like neverthrow is that you can create the Monad boundary where you like.
It becomes very similar to try-catch exception handling at the place you draw the boundary, then within the boundary it’s monad land.
If you haven’t wrapped it in a monad, chances are you wouldn’t have wrapped it in a try-catch either!