Re:Sapper, a lightweight web framework written in Rust
by kazagistar on Thursday June 02, 2016 @03:52AM
(#11820991)
That would be
fn something() -> (Option<String>, Option<String>)
Because the Rust types aren't nullable by default. But that more clearly demonstrates that Result types are better since they enforce that the error and result are mutually exclusive.
fn something() -> (String, String) ...
let (result, err) = something()
It's just that Result is preferable because you can pattern match on it