-
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
Replace be
with become
#601
Conversation
Related to my original question here: #271 (comment) |
+1 to this. Everyone that I've asked about this has preferred In terms of keywords to reserve, it also seems more likely that a user would accidentally attempt to use The remaining objection that I can foresee is whether we want to reserve a keyword at all for this purpose. Given that the TCE proposal has been merely postponed rather than rejected, I am free to conclude that others find this eventual feature as valuable as I do. If we ever ultimately decide against it, we can simply unreserve the keyword. |
I like |
@steveklabnik should I add that to the alternatives section? |
Sure :) |
As suggested by Steve Klabnik, we can also have both `be` and `become` as reserved keywords.
I'm mildly amused by the idea of bikeshedding a reserved word for a non-existent feature, though I think I agree with your suggestion (particularly now that we long ago changed from |
I guess @bstrie already commented on my point. I can kind of go either way in any case (that is, leave something reserved, or leave nothing reserved). Reserving both feels a bit like overkill. In general we've been moving away from reserving keywords, but this does fall under the category of "clear and desired purpose". |
Reserving So IMO reserving |
@Valloric to be clear, no decision that we make here in any way "forecloses" the option of one keyword or the other. Our general position has been that we will not reserve every keyword we think we might want, but rather just adopt a mechanism for adding new keywords backwards compatibly in the future. That said, there are a number of reserved words that were "grandfathered" in---and in some cases, it seems to make sense to keep the word reserved, since we're pretty sure we're going to want it. This might be an example of the latter case. |
@nikomatsakis I prepared a branch which implements the replacement to evaluate the extent of the change (at least in rust-lang/rust; servo/servo should be fine, as it does not use |
@ranma42 if you've done the work to implement it, I'd be inclined to accept this RFC and that PR. |
As per rust-lang/rfcs#601, replace `be` with `become` as reserved keyword for tail call optimization.
@nikomatsakis I fixed the conflicts and rebased it: rust-lang/rust#21918. I will file separate pull requests for the editor syntax files. |
@nikomatsakis ping? |
We've decided to accept this RFC. Tracking issue is rust-lang/rust#22141. |
As per rust-lang/rfcs#601, replace `be` with `become` as reserved keyword for tail call optimization.
Rendered view