News for hackers. Stuff that matters.
Re:Announcing Rust 1.13 by Dobbs on Thursday November 10, 2016 @03:51PM (#12924223)
`try!(foo)` is roughly equivalent to this (invalid) code:

    foo().unwrap_or_else({ |e| return Err(e) })
Or in Go terms:

    a := try!(foo)
is equivalent to:

    a, err := foo()
    if err != nil {
        return nil, err
    }
Basically it will take the result of foo, and if foo returns an error it will return the error itself.

https://doc.rust-lang.org/beta/std/result/ has lots of examples of alternative ways you can deal with the error case, or the Ok() case of a result.

Re:Announcing Rust 1.13 by zphds on Thursday November 10, 2016 @05:05PM (#12924914)
It's worth mentioning that try! is a macro that basically takes that expr and turns it to something similar to your go example.