News for hackers. Stuff that matters.
Re:Elegant Error Handling with the JavaScript “Either” Monad by kmonsen on Wednesday June 19, 2019 @08:54AM (#20222820)
So in rust you write with result and in js you use try/catch. Pretty simple, and readers will understand the code.
Re:Elegant Error Handling with the JavaScript “Either” Monad by roblabla on Wednesday June 19, 2019 @10:33AM (#20223696)
Oh I agree, and definitely don't recommend using Result in JS, the language is just not tailored for it. I was specifically addressing

> I never understood the love for Either-based error handling in Haskell and other languages.