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
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Jun 19, 2019 | Elegant Error Handling with the JavaScript “Either” Monad by fagnerbrack | 177 | 235 |