Jason W. Victor

Javascript Futures and Monads Belong Together

We recently posted a little code snippet on the Toggle devlog explaining why we like using a simple Either (a.k.a. “Result”) monad with our Node.js futures: it makes it much cleaner to build long chains of asynchronous processing in a way that is idiomatic and terminates early in the vent of errors.

We’ll update this page if we put it up on a Github gist, but for now you can read the whole post and get the code for the Node.js Result monad here:

Read full article

This project is maintained by jwvictor