News for hackers. Stuff that matters.
Re:Elegant Error Handling with the JavaScript “Either” Monad by steveklabnik on Wednesday June 19, 2019 @01:21PM (#20225207)
Fun bit of history: Rust used to have Either. Eventually we added Result. At some point, we looked at all the code that existed (ahhh, the things you can do when you're young) and nobody used Either, only Result.

Today, either lives on as a package: https://crates.io/crates/either It gets a lot of downloads because it is actually used by a few popular libraries: https://crates.io/crates/either/reverse_dependencies

Re:Elegant Error Handling with the JavaScript “Either” Monad by remram on Wednesday June 19, 2019 @03:48PM (#20226670)
Either also lives on in the `futures` library, where it is used when you have multiple things that can happen in your asynchronous task and you want to stick to static types rather than returning a trait object.

https://docs.rs/futures/0.1/futures/future/enum.Either.html