Name: Anonymous 2016-12-16 15:09
Rust designers developed an idiom for concisely propagating errors outwards with a macro called try!:
More recently, Rust shipped an even more concise notation for error propagation, the postfix ? operator:
let file = try!(File::open("file.txt"));
More recently, Rust shipped an even more concise notation for error propagation, the postfix ? operator:
let file = File::open("file.txt")?;