Skip to content
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

Use _v shorthand for type traits and if constexpr where appropriate #87871

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

vittorioromeo
Copy link
Contributor

This is a pure refactoring PR that shouldn't affect the behavior or Godot in any way or form. I've used the shorthand _v notation for type traits (which is more concise, and faster to compile on modern compilers) and promoted some if constructs to if constexpr where appropriate.

Both of the changes had a precedent in the codebase.

BTW, I'm working on some more improvements to the internals, hope this kind of PR is appreciated!

@vittorioromeo vittorioromeo requested review from a team as code owners February 2, 2024 14:17
Copy link
Member

@Geometror Geometror left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
Btw these kinds of PRs are definitely appreciated :)

@vittorioromeo
Copy link
Contributor Author

Looks good! Btw these kinds of PRs are definitely appreciated :)

Thank you, I am glad to hear that!

What is the general procedure for the PRs to get merged after review is approved?

@akien-mga
Copy link
Member

What is the general procedure for the PRs to get merged after review is approved?

See https://docs.godotengine.org/en/stable/contributing/workflow/pr_review_guidelines.html#merging-pull-requests

TL;DR: Currently I'm the one overseeing all merges, and they need to fit within relevant needs of the codebase at the time, and the release cycle (e.g. the imminent 4.3-dev3 snapshot). In this case this PR is likely fine to merge at any time as it seems to be a low risk refactoring, so it will be in the next batch.

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Feb 5, 2024
@akien-mga akien-mga changed the title Use '_v' shorthand for type traits and 'if constexpr' where appropriate Use _v shorthand for type traits and if constexpr where appropriate Feb 5, 2024
@akien-mga akien-mga merged commit 63d6bda into godotengine:master Feb 5, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants