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

protocols are leaking implementation details #18

Open
godbout opened this issue Mar 7, 2021 · 1 comment
Open

protocols are leaking implementation details #18

godbout opened this issue Mar 7, 2021 · 1 comment

Comments

@godbout
Copy link
Owner

godbout commented Mar 7, 2021

by using Protocols to define a bunch of common implementation, the properties of those protocols are leaking. i want to have them as private but it's not possible as currently in Swift (5.4) protocol properties can't have their access control specified. it just follows the one of the protocol itself.

not sure how to handle this yet. i'd like to avoid duplicating methods around different struct/class but i also want to avoid open unnecessary implementation details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant