News for hackers. Stuff that matters.
Re:Sapper, a lightweight web framework written in Rust by yarper on Wednesday June 01, 2016 @04:24PM (#11817825)
It supports that kind of error handling too,

fn something() -> (String, String) ...

let (result, err) = something()

It's just that Result is preferable because you can pattern match on it

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.
Re:Sapper, a lightweight web framework written in Rust by yarper on Thursday June 02, 2016 @11:47AM (#11823442)
agreed!