-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename {Option, Result}::expect to unwrap_or_panic #3218
Conversation
Very strongly disagree. I absolutely do not think such a change is easy. It's only easy if you don't look at its impact on the ecosystem, including documentation (outside of official docs) and blogs and printed materials.
|
That's my first reaction too. If anything, |
I'm sympathetic to the fact that I agree that a large bar needs to be cleared to make this change, but also want to point out that Makefiles use tabs because the author didn't want to break compatibility for tens of users, later affecting many more. If Rust continues to grow and this affects people enough, it's worth considering inconveniencing the current (relatively smaller) group in favor of improving the situation for a future (relatively larger) group. Footnotes
|
IMO a big mistake we made with As a result, I feel like this RFC is going in the wrong direction. If |
|
May be |
I agree using But that's water down the bridge... |
I definitely agree with other folks that |
I'm not sure how viable it is in an absolute sense (how many people are parsing the human-readable output?) but wouldn't it be more viable to keep
|
|
well, if we really have to pick a new name, how about something like |
I'd suggest However, I do think |
...but that wouldn't be consistent with current methods so long as |
If |
This is more of a long-term thought, but if at some point Rust gets optional arguments (on wishlist in #323), would it be possible to make |
@rfcbot close |
Team member @joshtriplett has proposed to close this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
@ssokolow If you'd like to propose the message change you mentioned as a separate PR, I'd be happy to see that happen, and would be happy to r+ it. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
@joshtriplett What kind of detailed guides are available on the DOs and DON'Ts of making such a PR? I'm game, but things are a bit crazy right now, so I don't really have time for research/self-directed learning on a contribution process I've never participated in before. |
@ssokolow There's the rustc-dev-guide, but in the context of a simple message change, I think a simple PR changing that one line should suffice. Remember to update any tests that check for the old message, and run |
The final comment period, with a disposition to close, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This is now closed. |
Rendered
Inspired by rust-lang/rust#35083.