[swift-evolution] Pitch: Automatically deriving Equatable/Hashable for more value types

Tony Allevato tony.allevato at gmail.com
Mon May 15 16:30:34 CDT 2017


Just to update everyone on the thread—it took a little longer than I'd
hoped to get the kinks out, but I finally have the implementation up as a
PR: https://github.com/apple/swift/pull/9619

Hopefully there's still enough time to get the proposal reviewed, make any
changes needed, and get this into Swift 4!


On Tue, May 9, 2017 at 10:27 PM Brent Royal-Gordon <brent at architechies.com>
wrote:

> On May 9, 2017, at 3:53 PM, Tony Allevato via swift-evolution <
> swift-evolution at swift.org> wrote:
>
> Likewise, proposing a new public addition to the standard library would
> inspire far more design discussion than I believe we have time for if we
> want this to make Swift 4. :)
>
>
> Agreed. What I would do here is add an `_combineHashes` function (or
> `Hashable` extension method, or whatever is most convenient) to the
> standard library in Swift 4, have your compiler magic feature use it, and
> defer the name-and-interface discussion until Swift 5.
>
> --
> Brent Royal-Gordon
> Architechies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170515/cf44812c/attachment.html>


More information about the swift-evolution mailing list