-
Notifications
You must be signed in to change notification settings - Fork 220
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
Allow accessing fetched entities of a Storage
#515
Conversation
I don't think it's worth it to hide this without demonstrated evidence it confuses people. I think we should leave it visible until we get a lot of confused users. |
Hmm, I thought you're going to say something like this ^^ That's why I hid it. If you insist on this, the only option I see is to give it a longer name to make sure this is obvious. |
I'd definitely be in favor of the longer name option. The way it is currently would still come up in editor auto completes but there would be no documentation. That's even more confusing. |
Done. |
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.
Perfect, thanks!
bors r+
515: Allow accessing fetched entities of a `Storage` r=Xaeroxe a=torkleyy I've added `Storage::entities` to allow making extension methods for `Storage` that return `Entity`. This method is hidden because I'm 100% certain newcomers will be confused by this otherwise. This makes it less visible, yes, but I think that's worth for avoiding this confusion. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/slide-rs/specs/515) <!-- Reviewable:end --> Co-authored-by: Thomas Schaller <torkleyy@gmail.com>
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.
Double approval, you are lucky :3
Build succeeded |
I've added
Storage::entities
to allow making extension methods forStorage
that returnEntity
.This method is hidden because I'm 100% certain newcomers will be confused by this otherwise. This makes it less visible, yes, but I think that's worth for avoiding this confusion.
This change is