-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Rename Q
type parameter to D
when referring to WorldQueryData
#10782
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 Q
type parameter to D
when referring to WorldQueryData
#10782
Conversation
I would even go as far as to recommend using full |
Honestly, I would too, however the convention at the moment is single letter naming. |
I'm in favor of this direction. I think we should merge the other PR first though, since it's publicly breaking. |
Always prefer readability over conventions. impl<Marker, In, F> Condition<Marker, In> for F {}
impl<A, B, Func> ReadOnlySystem for CombinatorSystem {}
impl<Input, Out, Func: Send + Sync + 'static> ExclusiveSystemParamFunction for Func {}
impl<Param: SystemParam> SystemState<Param> {} |
That's more common than I thought. What do you think @alice-i-cecile? Should we go right now with full names for type parameters ( |
020b843
to
affd812
Compare
I think we should stick to |
b8a7ba0
to
4fad095
Compare
4fad095
to
e4f7ee0
Compare
Objective
Since #10776 split
WorldQuery
toWorldQueryData
andWorldQueryFilter
, it should be clear that the query is actually composed of two parts. It is not factually correct to call "query" only the data part. Therefore I suggest to rename theQ
parameter toD
inQuery
and related items.As far as I know, there shouldn't be breaking changes from renaming generic type parameters.
Solution
I used a combination of rust-analyzer go to reference and
Ctrl-F
ing various patterns to catch as many cases as possible. Hopefully I got them all. Feel free to check if you're concerned of me having missed some.Notes
This and #10779 have many lines in common, so merging one will cause a lot of merge conflicts to the other.