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-16 23:58

http://lambda-the-ultimate.org/node/5402

Stroustrup's Rule and Layering Over Time

Dave Herman is the voice of the oppressed: syntax is important, contrary to what you have been told!

To illustrate he discusses what he calls Stroustrup's Rule:

For new features, people insist on LOUD explicit syntax.
For established features, people want terse notation.

Name: Anonymous 2016-12-17 16:33

>>5
Acshuallu, Stroutstrup is wrong. Basic features demand short and concise syntax regardless of newness.

Name: Anonymous 2016-12-17 20:41

>>5
syntax is important, contrary to what you have been told!
I've been saying this for a long time. Kind of stupid to consider the interface you perpetually have to interact with "unimportant".

Name: Anonymous 2016-12-18 8:58

>>7
If syntax wasn't important we would be probably using very terse languages(APL-Lisp dialects?) optimized by brevity like Heinlein's Speedtalk

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