Comment by imron
10 years ago
Have a read of the rust release notes [0] to see why the ? operator actually improves code readability.
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.
No comments yet
Contribute on Hacker News ↗