|
1 |
| -- Feature Name: (fill me in with a unique ident, my_awesome_feature) |
2 |
| -- Start Date: (fill me in with today's date, YYYY-MM-DD) |
| 1 | +- Feature Name: `try_trait` |
| 2 | +- Start Date: 2017-01-19 |
3 | 3 | - RFC PR: (leave this empty)
|
4 | 4 | - Rust Issue: (leave this empty)
|
5 | 5 |
|
@@ -424,13 +424,14 @@ type to change.
|
424 | 424 | ### What to name the trait
|
425 | 425 |
|
426 | 426 | A number of names have been proposed for this trait. The original name
|
427 |
| -was `Carrier`, as the trait "carrier" an error value. A proposed |
428 |
| -alternative was `QuestionMark`, named after the operator `?`. However, |
429 |
| -the general consensus seemed to be that since Rust operator |
430 |
| -overloading traits tend to be named after the *operation* that the |
431 |
| -operator performed (e.g., `Add` and not `Plus`, `Deref` and not `Star` |
432 |
| -or `Asterix`), it was more appropriate to name the trait `Try`, which |
433 |
| -seems to be the best name for the operation in question. |
| 427 | +was `Carrier`, as the implementing type was the "carrier" for an error |
| 428 | +value. A proposed alternative was `QuestionMark`, named after the |
| 429 | +operator `?`. However, the general consensus seemed to be that since |
| 430 | +Rust operator overloading traits tend to be named after the |
| 431 | +*operation* that the operator performed (e.g., `Add` and not `Plus`, |
| 432 | +`Deref` and not `Star` or `Asterix`), it was more appropriate to name |
| 433 | +the trait `Try`, which seems to be the best name for the operation in |
| 434 | +question. |
434 | 435 |
|
435 | 436 | # Unresolved questions
|
436 | 437 | [unresolved]: #unresolved-questions
|
|
0 commit comments