Re:A better way to handle errors in JavaScript
by slawr1805 on Tuesday October 31, 2023 @02:03AM
(#38080855)
This is awesome! I dig this when using Rust and am pumped to try and sneak this in at work where we have a large TS codebase.
[ Parent
| on HN ]
Re:A better way to handle errors in JavaScript
by jwhiles on Tuesday October 31, 2023 @02:51AM
(#38081098)
This is a nice project, but it kind of feels like the result of someone who's just learnt about Rust/Haskell and wants to port what they know to JavaScript.
There's a lot of more established and battle tested libraries with the same functionality - I've recently been using Purify and finding it to be absolutely fine :)
their version of the same feature is here: https://gigobyte.github.io/purify/adts/Maybe