-
-
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
[Merged by Bors] - Mention creation of disjoint Querys with Without<T>
in conflicting access Panic
#2413
Conversation
Sort of as an additional issue, I wonder if this is something we can catch at compile time perhaps? |
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.
looks, good to me (other than my small nit).
Though, as I stated before, I'm curious if this is something we could potentially catch at compile time rather than runtime...
Co-authored-by: Nathan Ward <[email protected]>
IIRC doing so is quite challenging, and will become increasingly so if we get dynamic systems or especially archetype invariants (#1481). I do sympathize with the desire though. |
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.
This is a clear uncontroversial improvement to an important error message.
@mockersf shouldn't you just |
bors r+ |
…access Panic (#2413) # Objective Beginners semi-regularly appear on the Discord asking for help with using `QuerySet` when they have a system with conflicting data access. This happens because the Resulting Panic message only mentions `QuerySet` as a solution, even if in most cases `Without<T>` was enough to solve the problem. ## Solution Mention the usage of `Without<T>` to create disjoint queries as an alternative to `QuerySet` ## Open Questions - Is `disjoint` a too technical/mathematical word? - Should `Without<T>` be mentioned before or after `QuerySet`? - Before: Using `Without<T>` should be preferred and mentioning it first reinforces this for a reader. - After: The Panics can be very long and a Reader could skip to end and only see the `QuerySet` Co-authored-by: MinerSebas <[email protected]>
Pull request successfully merged into main. Build succeeded: |
Without<T>
in conflicting access PanicWithout<T>
in conflicting access Panic
…access Panic (bevyengine#2413) # Objective Beginners semi-regularly appear on the Discord asking for help with using `QuerySet` when they have a system with conflicting data access. This happens because the Resulting Panic message only mentions `QuerySet` as a solution, even if in most cases `Without<T>` was enough to solve the problem. ## Solution Mention the usage of `Without<T>` to create disjoint queries as an alternative to `QuerySet` ## Open Questions - Is `disjoint` a too technical/mathematical word? - Should `Without<T>` be mentioned before or after `QuerySet`? - Before: Using `Without<T>` should be preferred and mentioning it first reinforces this for a reader. - After: The Panics can be very long and a Reader could skip to end and only see the `QuerySet` Co-authored-by: MinerSebas <[email protected]>
Objective
Beginners semi-regularly appear on the Discord asking for help with using
QuerySet
when they have a system with conflicting data access.This happens because the Resulting Panic message only mentions
QuerySet
as a solution, even if in most casesWithout<T>
was enough to solve the problem.Solution
Mention the usage of
Without<T>
to create disjoint queries as an alternative toQuerySet
Open Questions
disjoint
a too technical/mathematical word?Without<T>
be mentioned before or afterQuerySet
?Without<T>
should be preferred and mentioning it first reinforces this for a reader.QuerySet