[swift-evolution] Figuring out what you get for free
Kyle Murray
kyle_murray at apple.com
Thu Sep 14 17:10:23 CDT 2017
> However, I find that I'm having trouble figuring out what I get for free when I implement a protocol. In principle, I like conditional conformances and synthesized implementation of protocol methods, but I find that they both make it harder to figure out what I need to implement, and what are going to be the performance characteristics of methods that I choose to not implement.
If you're thinking specifically about the standard library, the documentation for protocols like Sequence shows whether a member is required, and whether it provides a default implementation.
https://developer.apple.com/documentation/swift/sequence#2923865 <https://developer.apple.com/documentation/swift/sequence#2923865>
Have you noticed that before, or is it still tricky to find requirements given the presentation?
-Kyle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170914/ea200504/attachment.html>
More information about the swift-evolution
mailing list