-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Fix naming on "tick" Column and ComponentSparseSet methods #9744
Fix naming on "tick" Column and ComponentSparseSet methods #9744
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.
Sure, I think that's more clear.
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.
To ease migration, can you add deprecated methods with the old names that direct users to the new names?
@JoJoJet I think the compiler should be good enough at directing users. The name are similar enough that the error message from the error should include the updated name and be enough guidance. Since releases are expected to be breaking, I don't think a deprecation is needed in this case. |
…e#9744) # Objective - The tick access methods mention "ticks" (as in: plural). Yet, most of them only access a single tick. ## Solution - Rename those methods and fix docs to reflect the singular aspect of the return values --- ## Migration Guide The following method names were renamed, from `foo_ticks_bar` to `foo_tick_bar` (`ticks` is now singular, `tick`): - `ComponentSparseSet::get_added_ticks` → `get_added_tick` - `ComponentSparseSet::get_changed_ticks` → `get_changed_tick` - `Column::get_added_ticks` → `get_added_tick` - `Column::get_changed_ticks` → `get_changed_tick` - `Column::get_added_ticks_unchecked` → `get_added_tick_unchecked` - `Column::get_changed_ticks_unchecked` → `get_changed_tick_unchecked`
Objective
Solution
Migration Guide
The following method names were renamed, from
foo_ticks_bar
tofoo_tick_bar
(ticks
is now singular,tick
):ComponentSparseSet::get_added_ticks
→get_added_tick
ComponentSparseSet::get_changed_ticks
→get_changed_tick
Column::get_added_ticks
→get_added_tick
Column::get_changed_ticks
→get_changed_tick
Column::get_added_ticks_unchecked
→get_added_tick_unchecked
Column::get_changed_ticks_unchecked
→get_changed_tick_unchecked