[pitch]:generate == function


(J.E. Schotsman) #1

Hello,

I find myself writing a lot of func ==(_:_:slight_smile: stuff lately.
I wonder if Swift could generate these automatically for a struct declared Equatable whose stored properties are all Equatable?

Jan E.


(Félix Cloutier) #2

memberwise func ==? (if memberwise init does make it)

Félix

···

Le 19 janv. 2016 à 08:17:40, Jan E. Schotsman via swift-evolution <swift-evolution@swift.org> a écrit :

Hello,

I find myself writing a lot of func ==(_:_:slight_smile: stuff lately.
I wonder if Swift could generate these automatically for a struct declared Equatable whose stored properties are all Equatable?

Jan E.
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution