Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Stroustrup's Rule and Layering Over Time in Rust. Parent comment
It's not obvious from the simple example given the original article, but as the release notes mention it makes things like the following:
try!(try!(try!(foo()).bar()).baz())
much more readable:
foo()?.bar()?.baz()?
If the main concern is readability of code, the latter wins hand down.
0: https://blog.rust-lang.org/2016/11/10/Rust-1.13.html
There are no comments on this comment yet.
It's not obvious from the simple example given the original article, but as the release notes mention it makes things like the following:
try!(try!(try!(foo()).bar()).baz())
much more readable:
foo()?.bar()?.baz()?
If the main concern is readability of code, the latter wins hand down.
0: https://blog.rust-lang.org/2016/11/10/Rust-1.13.html