[swift-evolution] [swift-evolution-announce] [Review] SE-0026 Abstract classes and methods
gwendal.roue at gmail.com
Tue Mar 1 06:13:09 CST 2016
> Le 1 mars 2016 à 11:29, Brent Royal-Gordon via swift-evolution <swift-evolution at swift.org> a écrit :
>> I'm missing an important feature in your list: being able to declare protocol members with access scopes different from that of the protocol, i.e. private or internal in a public protocol.
> Extension methods can always have different access control scopes from the protocol as a whole. The required/abstract methods are a different story, but I'll get into that later.
Don’t you go too fast? Methods declared in protocol extensions are very different from methods declared inside the protocol: they are not dynamically dispatched.
I, too, am concerned about the flat world of protocols' access control.
More information about the swift-evolution