JavaScript Promises as a poor person’s Either Type
2 min readOct 17, 2020
I’ve been thinking about elegantly handling exceptions in synchronous Javascript code for a while.
I’m a fan of Either types and Future types. And my views about what’s “right” is heavily influenced by using them in production code-bases.