-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Decide on name for Freeze
#131401
Comments
I'm reiterating my proposal from Zulip: keeping
|
Let's see whether we have consensus to simply call it @rfcbot fcp merge |
Team member @traviscross has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
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! cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns. |
I don't know if |
@rfcbot concern should-be-self-documenting-about-interior-mutability I think we should use a name that's self-documenting and evokes the concept of interior mutability in some way. |
Would |
I'm partial to the name |
Stylistically, we don't end trait names with "-able". We have That is, trait names imply the capability to do the thing named in the trait. What would be the version of an "interior immutable"-style name that matches that? |
While "mutable" has a verb form "mutate", there isn't any verb equivalent of "immutable" ("not mutate"?). I would therefore argue for an exception to the -able policy for this specific case since "immutable" very clearly captures what this trait is promising. An alternative that also captures the concept of interior mutability are might be |
Some variants to get the juices going:
|
The "action" this trait lets one do is know that if we do two reads from (pointers derived from) a reference where the pointee has this trait, we will get the same value. I don't know how to make that into a nice trait name...
|
What @RalfJung said is why I don't hate I.e., inventing some notation, we could imagine the trait as: trait Freeze {
fn freeze(&self) -> &frozen Self;
} |
Maybe |
I could live with |
@traviscross I'd prefer |
@traviscross This RFC is becoming stale again, with bike-shedding around the trait's name looking like the main blocker. Do you think setting a deadline on the decision of naming (and possibly a poll with some of the existing options) could help push forward? |
It's a good point. We just need to allocate some time for it in a meeting and commit to the bikeshed. There's a meeting in mid December we have scheduled that would probably make sense for that. |
We still need to pick a name for
Freeze
(which may still beFreeze
) so that we can proceed with:core::marker::Freeze
in bounds rfcs#3633Thoughts?
cc @rust-lang/lang
@rustbot labels +T-lang +I-lang-nominated
The text was updated successfully, but these errors were encountered: