-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rename some name
variables as ident
.
#139510
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a nitpick here. I think it should be fine to name types/functions/variables using the abbreviated form ident
, but when referring to them in comments it would probably be better to call them by what they actually are: identifiers.
It bugs me when variables of type `Ident` are called `name`. It leads to silly things like `name.name`. `Ident` variables should be called `ident`, and `name` should be used for variables of type `Symbol`. This commit improves things by by doing `s/name/ident/` on a bunch of `Ident` variables. Not all of them, but a decent chunk.
0010636
to
663a317
Compare
Thanks for the review. I added a new commit addressing the comments. |
Thanks! Next time please use @bors r+ rollup |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#139502 (fix "still mutable" ice while metrics are enabled) - rust-lang#139510 (Rename some `name` variables as `ident`.) - rust-lang#139606 (Update compiletest to Edition 2024) - rust-lang#139609 (compiletest: don't use stringly paths for `compose_and_run`) - rust-lang#139614 (Avoid empty identifiers for delegate params and args.) - rust-lang#139626 (Remove unnecessary `mut` in test.) - rust-lang#139630 (Miri subtree update) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#139510 - nnethercote:name-to-ident, r=fee1-dead Rename some `name` variables as `ident`. It bugs me when variables of type `Ident` are called `name`. It leads to silly things like `name.name`. `Ident` variables should be called `ident`, and `name` should be used for variables of type `Symbol`. This commit improves things by by doing `s/name/ident/` on a bunch of `Ident` variables. Not all of them, but a decent chunk. r? `@fee1-dead`
It bugs me when variables of type
Ident
are calledname
. It leads to silly things likename.name
.Ident
variables should be calledident
, andname
should be used for variables of typeSymbol
.This commit improves things by by doing
s/name/ident/
on a bunch ofIdent
variables. Not all of them, but a decent chunk.r? @fee1-dead