[swift-evolution] Universal Equatability, Hashability, and Comparability
david at hartbit.com
Wed Mar 9 02:17:30 CST 2016
> On 08 Mar 2016, at 23:15, Austin Zheng via swift-evolution <swift-evolution at swift.org> wrote:
> I would prefer Equatable and Hashable to remain opt-in, and for us to add better support for automatic deriving of implementation.
> On 08 Mar 2016, at 23:57, Zach Waldowski via swift-evolution <swift-evolution at swift.org> wrote:
> I completely agree with Austin here. Automatic derivation (perhaps through the same mechanisms Joe is talking about) would be a nice enhancement, but I find it refreshing and advantageous for simple value types to have very little automatic behavior.
Pedantically I agree with both of you, but from a very pragmatic point of you, I think it's very important to point out what Joe said about how this could reduce one of the most frustrating aspects of Swift, when people work with heterogeneous arrays and try to conform to Equatable:
> that would solve many of the common problems people currently have trying to work with heterogeneous containers.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution