-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Merged by Bors] - merge matches_archetype
and matches_table
#4807
Conversation
PR description could provide a bit more context on what exactly these types are, but I'm happy with the changes themselves. |
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.
bors r+
# Objective the code in these fns are always identical so stop having two functions ## Solution make them the same function --- ## Changelog change `matches_archetype` and `matches_table` to `fn matches_component_set(&self, &SparseArray<ComponentId, usize>) -> bool` then do extremely boring updating of all `FetchState` impls ## Migration Guide - move logic of `matches_archetype` and `matches_table` into `matches_component_set` in any manual `FetchState` impls
matches_archetype
and matches_table
matches_archetype
and matches_table
# Objective the code in these fns are always identical so stop having two functions ## Solution make them the same function --- ## Changelog change `matches_archetype` and `matches_table` to `fn matches_component_set(&self, &SparseArray<ComponentId, usize>) -> bool` then do extremely boring updating of all `FetchState` impls ## Migration Guide - move logic of `matches_archetype` and `matches_table` into `matches_component_set` in any manual `FetchState` impls
Came across this change while reviewing #4626: im not sold on this for a number of reasons:
|
|
This reverts commit e528b63.
@BoxyUwU, you mentioned you had rebuttals to these concerns but never remembered to actually write them down :) |
# Objective the code in these fns are always identical so stop having two functions ## Solution make them the same function --- ## Changelog change `matches_archetype` and `matches_table` to `fn matches_component_set(&self, &SparseArray<ComponentId, usize>) -> bool` then do extremely boring updating of all `FetchState` impls ## Migration Guide - move logic of `matches_archetype` and `matches_table` into `matches_component_set` in any manual `FetchState` impls
Objective
the code in these fns are always identical so stop having two functions
Solution
make them the same function
Changelog
change
matches_archetype
andmatches_table
tofn matches_component_set(&self, &SparseArray<ComponentId, usize>) -> bool
then do extremely boring updating of allFetchState
implsMigration Guide
matches_archetype
andmatches_table
intomatches_component_set
in any manualFetchState
impls