[swift-evolution] Synthesizing Equatable, Hashable, and Comparable for tuple types

Mike Kluev mike.kluev at gmail.com
Sat Nov 25 16:44:22 CST 2017

On 25 November 2017 at 22:38, Xiaodi Wu <xiaodi.wu at gmail.com> wrote:

> On Sat, Nov 25, 2017 at 4:30 PM, Mike Kluev <mike.kluev at gmail.com> wrote:
>>> i haven't encounter this notation before so it looks strange and
>> requires some effort to decipher. if it was e.g. in this form:
>> extension (Equatable...) : Equatable
>> then it would be immediately obvious what it means, IMHO
> That reads to me like you are extending a tuple of type `(Equatable...)`.
> This is not the same as extending a tuple of type `(E...) where ...E :
> Equatable`.

and if Equatable is not a type but a protocol then the practical difference
is what ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171125/3aee56b4/attachment.html>

More information about the swift-evolution mailing list