James Sinclair personal blog

Elegant Error Handling with the JavaScript “Either” Monad

JavaScript gives us a built-in language feature for handling exceptions: try…catch statements. And they’re better than littering our code with if-statements. But they can be problematic. And they are not the only way to handle errors. In this article, we’ll take a look at using the ‘Either monad’ as an alternative to…
Points
177
HN comments
235
Submissions
1
Cited by
0 commenters

Software EngineeringWeb & Frontend2019

On Hacker News

SubmittedTitle on HNPointsComments
Jun 19, 2019Elegant Error Handling with the JavaScript “Either” Monad by fagnerbrack177235

More from James Sinclair

All 9 posts →

Related posts from the same era