Re:Elegant Error Handling with the JavaScript “Either” Monad
by leshow on Wednesday June 19, 2019 @07:09PM
(#20228253)
There are zero implementations of Left being the Ok value, just this hypothetical put forward by another commenter.
edit: I should specify that I mean when Either is used as a 'Result' type. There are plenty of other use cases you can use Either outside of Ok/Err values.
edit: I should specify that I mean when Either is used as a 'Result' type. There are plenty of other use cases you can use Either outside of Ok/Err values.