-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 instance()
->instantiate()
when it's a verb
#49693
Rename instance()
->instantiate()
when it's a verb
#49693
Conversation
Shouldn't there be a change in the documentation as well? |
I'm not particularly against the rename, but it's not only about simple refactor thing. The entire codebase should be reviewed for usage of "instance" word, including comments. The existing "instance" word sounds fine to me (and is easier to type), but I'm not a native speaker. English allows to use nouns as verbs, so that's why it probably sounds natural to me: https://en.wikipedia.org/wiki/Buffalo_buffalo_Buffalo_buffalo_buffalo_buffalo_Buffalo_buffalo It also depends on how you interpret method names. I guess it's a problem of being explicit and being too verbose. That's why I prefer that we don't rename existing methods. But if we do, we should recognize the right context and rename existing methods accordingly (with the possiblity to remain existing |
Yes, it does sound valid, but probably because "instance" can actually be used as a verb, but it has an unrelated meaning. |
8799e77
to
46ce7fa
Compare
instance()
->instantiate()
when it's a verb
32ee0ca
to
4b7a5b7
Compare
I think |
644ee59
to
76309c1
Compare
I can see myself typoing a bit with this compared to instance. Would mistakenly rearrange the vowels. |
Should I open a proposal for this? The comment has +24 -0 likes/dislikes, so I'm not sure if it's necessary. |
3230a13
to
efa8e53
Compare
842755a
to
683ad7c
Compare
(rebased following #44806) |
Needs another rebase as I merged a bunch of PR (+ a couple might have added new calls to Then I'll merge this PR first :) |
6d98dcf
to
6364f23
Compare
6364f23
to
e28fd07
Compare
Okay I think everything should be good to go. |
Thanks! |
See #16863 (comment)