News for hackers. Stuff that matters.
Re:Measuring execution performance of C++ exceptions vs. err... by dbaupp on Monday January 09, 2017 @11:15PM (#13362521)
Result is exactly Haskell's Either, just with a different name.

> I had assumed that Rust would give me the same

They do. ADTs in Rust are very similar to languages like Haskell. The only major difference I can think of is everything is stored inline in the enums in Rust (they're what one might call "value types" in some languages) without any allocations required.

There are no comments on this comment yet.