[swift-evolution] [Proposal] clarification around protocol implementation and protocol extensions

David Waite david at alkaline-solutions.com
Fri Feb 17 21:27:06 CST 2017

I wrote up the following draft proposal around attempting to clarify protocol implementation and protocol extensions, via annotating methods and properties meant to satisfy protocol requirements with additional keywords:

"Types implementing protocols with optional features (either through default implementations on extensions, or optional methods on objective-C protocols) do not have a way to detect either local typos or later upstream changes to the protocol  method signatures will result in behavioral changes. This proposal attempts to rectify that in a manner similar to override on subclassed types."

I’d appreciate feedback from the list! This is very much a first draft, likely filled with tyops.

https://gist.github.com/dwaite/5a10e759a0efd0d9d16e066db4291552 <https://gist.github.com/dwaite/5a10e759a0efd0d9d16e066db4291552>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170217/678a5e38/attachment.html>

More information about the swift-evolution mailing list