Uh oh!
There was an error while loading. Please reload this page.
Replace be with become - #601
Conversation
ranma42
commented
Jan 20, 2015
Related to my original question here: #271 (comment) |
bstrie
commented
Jan 20, 2015
+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. |
steveklabnik
commented
Jan 20, 2015
I like |
ranma42
commented
Jan 20, 2015
@steveklabnik should I add that to the alternatives section? |
steveklabnik
commented
Jan 20, 2015
Sure :) |
As suggested by Steve Klabnik, we can also have both `be` and `become` as reserved keywords.
nikomatsakis
commented
Jan 22, 2015
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 |
nikomatsakis
commented
Jan 22, 2015
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". |
Valloric
commented
Jan 22, 2015
Reserving So IMO reserving |
nikomatsakis
commented
Jan 26, 2015
@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. |
ranma42
commented
Jan 30, 2015
@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 |
nikomatsakis
commented
Feb 3, 2015
@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.
ranma42
commented
Feb 4, 2015
@nikomatsakis I fixed the conflicts and rebased it: rust-lang/rust#21918. I will file separate pull requests for the editor syntax files. |
ranma42
commented
Feb 9, 2015
@nikomatsakis ping? |
nikomatsakis
commented
Feb 10, 2015
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