[swift-evolution] Auto-generate op==?
danielt1263 at gmail.com
Fri Feb 12 14:47:38 CST 2016
In Haskell, we can mark a data block as deriving from Eq and it will auto-generate the == operator.
I would like to see Swift auto-generate the == operator if a struct implements Equatable. Obviously, it would only be able to do this if all the structs members implemented Equatable themselves.
Has this idea already been proposed? I didn’t see it at the github repo…
More information about the swift-evolution