Re:Elegant Error Handling with the JavaScript “Either” Monad
by jeremyjh on Wednesday June 19, 2019 @06:30PM
(#20227998)
There definitely are more semantics than this in the monad instance for Either, which treats Left as "failure" (via early exit in a comprehension) and Right as "success". The docs call out the convention as well.
[ Parent
| on HN ]
There are no comments on this comment yet.