Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
shepmaster
on May 10, 2018
|
parent
|
context
|
favorite
| on:
Rust 1.26 released
Until then, we use `Either` (
https://stackoverflow.com/a/50204370/155423
)
leshow
on May 11, 2018
[–]
Tangentially, do you know why Rust never included an Either type? We have Result, which is great, but Either is useful for more things than errors (though that seems to be it's main use).
steveklabnik
on May 11, 2018
|
parent
[–]
We had it for a long time, as well as result, and literally no code used it, so we took it out.
There’s a crate on crates.io for it if you want to use it for something.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: