-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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 Quat to Quaternion #45364
Rename Quat to Quaternion #45364
Conversation
It's called Quat in Unreal, and Quaternion in Unity. I don't really think this change is necessary, but it does make sense to me with either name. Maybe this should be discussed in a proposal. |
2e319bd
to
ebc95fc
Compare
Rebased following merge of #44989. |
ebc95fc
to
6797ac0
Compare
6797ac0
to
dcafa9e
Compare
A rose by any other name is still a rose. I don't like long names so I prefer Quat over Quaternion which I spell wrong 99% of the time I have to spell it. But that is a highly subjective opinion :) |
I don't agree with this. This isn't the first case of an abbreviated name, just look at |
This is about consistency within Godot. Godot does not use |
@madmiraal then this should be discussed on a broader sense IMO. Maybe you could add a proposal in #16863 if you haven't already. |
We discussed this on the Godot Contributors Chat #core channel a couple weeks ago, consensus seemed mostly against doing that change. Here's a permalink to that discussion but unfortunately accessing permalinks seems broken right now with Rocket.Chat: https://chat.godotengine.org/channel/core?msg=YUYmb1gtoIN4yOLhl So here's a screenshot of the discussion (copy-paste with formatted chat is a pain :( ): From a quick look at other engines:
I didn't check all existing engines but there does seem to be a general trend that most engines favor spelling it out fully, with a few notable exceptions: Unreal, id Tech, Defold, Godot. |
#16863 is not really an issue for discussion, it should mostly cater to consensual changes. Something like this needs its own proposal (or PR if we deem it's sufficient to reach a consensus) instead of another 20 comments in an issue with already several hundred of them :) |
Thanks for the survey @akien-mga I have personally changed my mind in favor of changing the name now. |
dcafa9e
to
98675cc
Compare
Rebased following merge of #45424. |
I think we should strive for reducing verbosity with core types specifically, and let it be the Godot naming convention. The verbosity would also likely depend on how often a particular type is actually used throughout projects. I've previously created a proposal for renaming If you ask me, I'd be in favor of |
@Xrayez Note: I created the |
Rebased following merge of #45562. |
Rebased following merge of #47470. |
Rebased following merge of #44951. |
For the reference, we discussed this rename in a PR review meeting today and couldn't really reach a consensus (like last time we tried). All contributors present seem fine with either name, and it's difficult to really estimate whether this change actually makes things better (while it's clear that it does change the API and break compat). We figured that it's something which should likely go through a poll to see if there's any major preference for changing or keeping the name in the community. I'll give this a go. |
Twitter poll is at https://twitter.com/Akien/status/1400550652980387843 Both communities seem to be in favor of the rename with a ratio of 2:1 or more. So I think we're edging towards doing the rename, it's more explicit and the community at large seems in favor of it (not massively, but significantly enough). There aren't a lot of compelling arguments not to do the rename, aside from avoiding a compat breakage. |
Thanks! |
I've been using quaternions for years and I didn't realise that
Quat
was Godot's quaternion; so I'm sure I'm not the only one. Changing it to Quaternion will eliminate any confusion.