News for hackers. Stuff that matters.
Re:Announcing Rust 1.22 by Manishearth on Thursday November 23, 2017 @07:17AM (#15764538)
Nah, in that example there should be a `return` before the `None` -- because it's the only block in the function it doesn't matter.

But it's not a ternary operator, it's unary.

let val = foo.bar()?; will call `bar()`, return if it is None, and if it is `Some(foo)`, set `val` to `foo`.

There are no comments on this comment yet.