> 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
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to