> In what way is this “hiding” protocol conformance? In the examples, MyClass
> is declaring conformance to A and B via the Useful protocol composition.
> Perhaps I should have made it clearer which bits are new/proposed: Only the
> implements word is new here, the protocol composition syntax (A & B) already
> exists.
>
My fault — but imho this "sub-protocol" situation isn't that common, and it
would make the proposal simpler if it starts with just forwarding:
class MyClass : A {
private let a = ImplementsA() implements A
...
In this case, there is (small) repetition (which imho isn't that bad — but
Kotlin has a nicer syntax for it).
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution