Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But in most cases you probably want something disjoint like Rust's `Result<T,E>`. In case of "it might be success with partial failure", you could go with unnamed tuples `(Option<T>,E)` or another approach.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: