-
Notifications
You must be signed in to change notification settings - Fork 84
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
Better understanding or maybe Documentation? #313
Comments
Have you read the API docs for those types? |
yes I have and they did not make sense to me tbh. https://docs.rs/hecs/latest/hecs/struct.With.html if this is what your talking about. Also with Satisfies I am guessing it just a boolean to determine if something Exists. Can it be mixed with With and Without? |
The example illustrates a query where
If a type variable is introduced like |
sorry I just did not understand the example itself. So i had to make a little test that printed off what it did find in each query. Just saying it would be nice to just have it Say on there either in the description or a comment above the example explaining what it is doing. Also adding the assert kind of works but maybe adding another assert that fails due to lets say c not existing in the queue would help make it more obvious. It is just a different way of thinking on my part sorry. I can Expand the docs if you would like and add more examples for things. just I gotta figure out how to use each part. could you show me an example of how to use Satisfies with With and Without on how it might be used to determine if something should be shown or not maybe. |
Thanks for the feedback; I agree that referring to the type parameters by name improves clarity here. I don't think we specifically need examples of combining these in particular. You can always use any type that implements |
Ahh nice. Yeah, the more clarity there is the better and easier it becomes to learn. |
So I am currently playing around with this Library and I really do not understand how the Queues work fully. This includes using the With and Without and Satisfies Structures.
I made a little Test demo that outputs things in a Set way But it would be nice to know things like
what does With's Q for and R for exactly, Does setting () tell it to not return anything but allow results to go through Etc..
Maybe some more Complex Examples and better documentation on how these would work and to work to get different things.
anyways It would be nice if you could better explain how these work in the documentation and maybe here. Would also be great If some sort of Discord or chat channel Existed. Anyways here is the Code Id like help with Explaining and maybe even telling me if this is the Correct way to do it.
After Some Help from my friend Tom I have come to the conclusion that these are more like
Without<ThingToReturn, ThingsThatCantExist>
With<ThingsToReturn, ThingsThatMustExist>
Not really sure how Satisfies really works.
The text was updated successfully, but these errors were encountered: