[swift-evolution] Mark protocol methods with their protocol

Shawn Erickson shawnce at gmail.com
Tue Sep 27 10:13:55 CDT 2016


Well it just doesn't help with collisions it helps with signature changes
in a protocol going missed in conformers in a much more reliable way.

On Tue, Sep 27, 2016 at 8:11 AM Martin Waitz via swift-evolution <
swift-evolution at swift.org> wrote:

> Hi,
>
> Am 2016-09-27 16:51, schrieb Dave Abrahams via swift-evolution:
> > The cases where you find these kinds of exact collisions are so rare
> > (never in my career) that it's fine if some manual work is needed.
>
> I agree that such accidental collisions are quite rare (especially with
> the Swift way of naming methods which makes it quite easy to describe
> the semantics of the function).
>
> However, I draw some other conclusion from it: I don't see why I should
> have to explicitly name the protocol in my methods. The method name is
> enough already to match it to the protocol.
>
> We shouldn't complicate our language just for obscure cases where
> protocols accidentally collide.
>
> --
> Martin
> _______________________________________________
> 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/20160927/216b5eca/attachment.html>


More information about the swift-evolution mailing list