Re:Overview of Rust error handling libraries
by epage on Friday November 22, 2019 @12:40PM
(#21607879)
Is it employing anonymous enums? They come up for helping errors in the Rust community from time to time. The main dropback I see on relying on them is that they make it easy to accidentally expose your implementation details as part of your public API, making it a breaking change to upgrade or change a dependency.
[ Parent
| on HN ]
Re:Overview of Rust error handling libraries
by The_rationalist on Friday November 22, 2019 @07:19PM
(#21611482)
In typescript you can return union types.
Rust doesn't allow that, at least not ergonomically.