News for hackers. Stuff that matters.
Re:Elegant Error Handling with the JavaScript “Either” Monad by james-mcelwain on Wednesday June 19, 2019 @04:33PM (#20227048)
This could be accomplished using Optional#orElseGet without any additional library dependencies, though.
Re:Elegant Error Handling with the JavaScript “Either” Monad by ubertaco on Thursday June 20, 2019 @10:14AM (#20233127)
That's true. I didn't think of doing that. Nice!