[swift-evolution] Figuring out what you get for free
Taylor Swift
kelvin13ma at gmail.com
Fri Sep 15 16:26:10 CDT 2017
i think in general the API docs could be organized in a more helpful way.
On Fri, Sep 15, 2017 at 3:30 PM, Kyle Murray via swift-evolution <
swift-evolution at swift.org> wrote:
>
> 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
>
> Have you noticed that before, or is it still tricky to find requirements
> given the presentation?
>
> -Kyle
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170915/fd7f8dbf/attachment.html>
More information about the swift-evolution
mailing list