Uh oh!
There was an error while loading. Please reload this page.
Document the question mark operator in reference and the book's syntax index - #37664
Conversation
rust-highfive
commented
Nov 9, 2016
r? @Manishearth (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
nit: space after comma in result
Manishearth
commented
Nov 9, 2016
r=me with nits |
Manishearth
commented
Nov 9, 2016
@bors r+ rollup thanks! |
bors
commented
Nov 9, 2016
📌 Commit cf20943 has been approved by |
est31
commented
Nov 9, 2016
Sorry, I've forgotten two backticks. @Manishearth can you re-review? |
KalitaAlexey
commented
Nov 9, 2016
Dear @Manishearth, |
Manishearth
commented
Nov 9, 2016
Yes, I think it works with carrier, but it's unstable. deferring to nrc who pushed for the carrier stuff iirc r? @nrc |
KalitaAlexey
commented
Nov 9, 2016
Is |
Manishearth
commented
Nov 9, 2016
I think it already was? |
nrc
commented
Nov 9, 2016
This correct |
nrc
commented
Nov 9, 2016
@bors: r+ rollup (The Carrier trait exists, but only for purposes of future compatibility, I don't think it should be advertised/documented) |
bors
commented
Nov 9, 2016
📌 Commit 1e9aad7 has been approved by |
Document the question mark operator in reference and the book's syntax index The question mark operator will be stabilized for the Rust 1.13 release (unfortunately). Even though I don't like the operator, it still should be documented in the syntax index in the book and in the reference. Maybe there are people who also want to change the book's chapters on error handling, depending on their views of what idiomatic error handling is, now that the operator is stable, but I don't want to and I'd prefer to keep this PR focused on the reference and syntax index only. Please also apply this PR to the beta branch of rust.
brson
commented
Dec 10, 2016
Reasonable backport. |
The question mark operator will be stabilized for the Rust 1.13 release (unfortunately). Even though I don't like the operator, it still should be documented in the syntax index in the book and in the reference.
Maybe there are people who also want to change the book's chapters on error handling, depending on their views of what idiomatic error handling is, now that the operator is stable, but I don't want to and I'd prefer to keep this PR focused on the reference and syntax index only.
Please also apply this PR to the beta branch of rust.