News for hackers. Stuff that matters.
Re:Elegant Error Handling with the JavaScript “Either” Monad by punjabisingh on Wednesday June 19, 2019 @03:57PM (#20226752)
I remember it by thinking that Left (error state) has to be handled first. This forces developers to always think of the erroneous state first and foremost. And then define the Right (success state).

On the other hand, it may be easier to forget the error state if it were the second argument. As is often the case with Promises and JS developers.

There are no comments on this comment yet.