Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

rust just got 4x more productive [shill thread]

Name: Anonymous 2016-12-16 15:09

Rust designers developed an idiom for concisely propagating errors outwards with a macro called try!:
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")?;

Name: Anonymous 2016-12-30 14:30

Just searched for ``rust error propagation'' and came across this article:
https://ruudvanasseldonk.com/2015/06/17/exceptional-results-error-handling-in-csharp-and-rust
I didn't even read it but you can be sure it's hipster shit when they have a FUCKING ``IT''-LIGATURE IN THE TITLE!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List