Re:From Rust to TypeScript
by untog on Saturday September 12, 2020 @12:16PM
(#24453504)
Personally I find the Rust syntax is a nice middle ground. If the function returns a Result, it can throw an error. And unless you provide a From<> implementation you do need to handle the specific error that gets thrown. But if you want things to bubble up cleanly you provide From<> (or use a crate that provides it for you) and it all works wonderfully.
[ Parent
| on HN ]
There are no comments on this comment yet.