[swift-evolution] Universal Equatability, Hashability, and Comparability

Brent Royal-Gordon brent at architechies.com
Wed Mar 9 19:57:08 CST 2016


>> Auto-deriving is a different story, though, especially if it's opt-in
>> (you have to say `deriving Equatable`). There, you presumably have
>> looked at the default semantics and determined they're appropriate for
>> your type.
> 
> I don't know if that level of explicitness is needed.  Explicit
> declaration of conformance might be enough.

I don't know if it's necessary either. What I'm saying is that if it *is* that explicit, it's a slam dunk; if it's *not* that explicit, it's a little more uncertain, but probably still a good idea.

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list