4 ms·
So in rust you write with result and in js you use try/catch. Pretty simple, and readers will understand the code.
by kmonsen 7y ago
So in rust you write with result and in js you use try/catch. Pretty simple, and readers will understand the code.
- roblabla 7y agoOh 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.