[pitch]:generate == function

Hello,

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

Jan E.

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 ==(_:_:) 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