Document the question mark operator in reference and the book's syntax index#37664
Document the question mark operator in reference and the book's syntax index#37664bors merged 1 commit intorust-lang:masterfrom
Conversation
|
r? @Manishearth (rust_highfive has picked a reviewer for you, use r? to override) |
src/doc/reference.md
Outdated
There was a problem hiding this comment.
nit: space after comma in result
src/doc/book/syntax-index.md
Outdated
|
r=me with nits |
|
@bors r+ rollup thanks! |
|
📌 Commit cf20943 has been approved by |
|
Sorry, I've forgotten two backticks. @Manishearth can you re-review? |
|
Dear @Manishearth, |
|
Yes, I think it works with carrier, but it's unstable. deferring to nrc who pushed for the carrier stuff iirc r? @nrc |
|
Is |
|
I think it already was? |
This correct |
|
@bors: r+ rollup (The Carrier trait exists, but only for purposes of future compatibility, I don't think it should be advertised/documented) |
|
📌 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.
|
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.