[swift-evolution] [Draft] Automatically deriving Equatable and Hashable for certain value types

Frank Ecsedy fecsedy at gmail.com
Mon May 30 13:19:38 CDT 2016


In Java I would use Project Lombok's @EqualsAndHashCode annotation on a
class. Caveats:

1. Swift is not Java and that's a good thing (TM).
2. Project Lombok is not Java, either.
3. 'deriving Equatable, Hashable' makes those interfaces 'magic'. Is that
good?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160530/bc595f35/attachment.html>


More information about the swift-evolution mailing list