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 2017-01-20 5:52

>>18-26,28-43
If null pointers did not exist, it would be necessary to invent them.

Name: Anonymous 2017-01-20 7:30

>>44
Imagine how math was before invention of zero

Name: Anonymous 2017-01-20 8:02

>>45
Also, zero requires special handling/rules(e.g.division by zero,L'Hôpital rules) just like null pointers.

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