News for hackers. Stuff that matters.
Re:Overview of Rust error handling libraries by jedisct1 on Friday November 22, 2019 @12:33PM (#21607796)
I like the idea of TypeScript-like error handling.

Or more generally, functions that can return different types without having to define an `enums`. If only because naming these single-use `enums` is hard :)

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.
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.