-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Generic impls access (details 4) #931
Conversation
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.
Generally the direction of using adapters instead of having some notion of private impl seems good to me.
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, checking with other leads.
library full control. We considered and rejected the idea that developers could | ||
put that interface declaration in an API file to allow it to be referenced in | ||
named constraints available to users. All impls for that interface would also |
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.
Is the rejection of this reflected in existing design documents somewhere? This seems like something that would be allowed by default unless we expressly prohibit it, and at least this proposal's design updates don't seem to do so. I'm OK with this rejected alternative being the only record of this for now, especially given that this is listed as something we might want to revisit, but please file an issue to track this so we don't forget entirely.
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.
I've created #971 with this question.
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.
Please proceed :)
Implementations of interfaces are as public as the names used in their signature. No access control modifiers are allowed on `impl` declarations. Co-authored-by: Richard Smith <[email protected]>
Implementations of interfaces are as public as the names used in their signature. No access control modifiers are allowed on
impl
declarations.