Skip to content
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

[SR-10575] Need New Access Control Parameter to access the property on method within extension in different source file #52975

Open
swift-ci opened this issue Apr 29, 2019 · 1 comment
Labels
access control Feature → modifiers: Access control and access levels compiler The Swift compiler in itself feature A feature request or implementation swift evolution proposal needed Flag → feature: A feature that warrants a Swift evolution proposal

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-10575
Radar None
Original Reporter i-asm (JIRA User)
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels New Feature, LanguageFeatureRequest
Assignee None
Priority Medium

md5: c457e422ea8c3d1f6743c1aaced9dd09

Issue Description:

Need a new access control parameter apart from regular private and public, so that we could access it on the extension for a class or struct in other source file

As currently if you want to achieve this you have to make it internal or open/public

we lead to expose that to object.

But in my case I don't want to expose it to object but can utilise it within extension

@belkadan
Copy link
Contributor

This would need to go through the Swift Evolution Process. (I'm personally against it, but that shouldn't stop you from pitching it. I do suggest familiarizing yourself with past discussions on access control first, though. It's a contentious topic.)

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added swift evolution proposal needed Flag → feature: A feature that warrants a Swift evolution proposal access control Feature → modifiers: Access control and access levels and removed new feature labels Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
access control Feature → modifiers: Access control and access levels compiler The Swift compiler in itself feature A feature request or implementation swift evolution proposal needed Flag → feature: A feature that warrants a Swift evolution proposal
Projects
None yet
Development

No branches or pull requests

3 participants