Rename Q type parameter to D when referring to WorldQueryData#10782
Rename Q type parameter to D when referring to WorldQueryData#10782alice-i-cecile merged 2 commits intobevyengine:mainfrom
Q type parameter to D when referring to WorldQueryData#10782Conversation
|
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
WorldQuerytoWorldQueryDataandWorldQueryFilter, 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 theQparameter toDinQueryand 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-Fing 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.