News for hackers. Stuff that matters.
Re:Elegant Error Handling with the JavaScript “Either” Monad by chii on Wednesday June 19, 2019 @09:01AM (#20222857)
why is either wrapped in eithers in your example? That feels like wrong code to me. Wouldn't it be Either<(MathError|IOError), Result>, and you pattern match the error or result?

There are no comments on this comment yet.