-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Parent -> ChildOf #17427
Parent -> ChildOf #17427
Conversation
This reverts commit 58bb7fd.
I removed the |
It looks like your PR is a breaking change, but you didn't provide a migration guide. Could you add some context on what users should update when this change get released in a new version of Bevy? |
I like this: I think it's a good compromise and I appreciate that the two terms are related. |
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.
It seems our bikes have been successfully shed.
Fixes bevyengine#17412 ## Objective `Parent` uses the "has a X" naming convention. There is increasing sentiment that we should use the "is a X" naming convention for relationships (following bevyengine#17398). This leaves `Children` as-is because there is prevailing sentiment that `Children` is clearer than `ParentOf` in many cases (especially when treating it like a collection). This renames `Parent` to `ChildOf`. This is just the implementation PR. To discuss the path forward, do so in bevyengine#17412. ## Migration Guide - The `Parent` component has been renamed to `ChildOf`.
Fixes #17412
Objective
Parent
uses the "has a X" naming convention. There is increasing sentiment that we should use the "is a X" naming convention for relationships (following #17398). This leavesChildren
as-is because there is prevailing sentiment thatChildren
is clearer thanParentOf
in many cases (especially when treating it like a collection).This renames
Parent
toChildOf
.This is just the implementation PR. To discuss the path forward, do so in #17412.
Migration Guide
Parent
component has been renamed toChildOf
.