[swift-evolution] [Proposal] allow protocol extensions to contain inheritance clauses

Javier Soto javier.api at gmail.com
Fri Dec 25 10:09:02 CST 2015

If I understood your proposal correctly, this is already planned to be
possible in Swift 3 :)
On Thu, Dec 24, 2015 at 9:05 PM Sash Zats via swift-evolution <
swift-evolution at swift.org> wrote:

> Hello,
> I ran into several cases when it would be desirable to add an inheritance
> clause B in the protocol extension A. Briefly, my proposal is that compiler
> should not produce an error once `extension A: B` implements all the
> functions of the protocol B, making it formally confirming to it. Sadly,
> currently, there is no elegant way to mark the conformance formally.
> A more detailed draft can be found here
> https://gist.github.com/zats/52476a83627f5e4c0a85
> I would really appreciate your feedback and thoughts on this.
> Thank you.
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
Javier Soto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151225/2845dc2a/attachment.html>

More information about the swift-evolution mailing list