On Apr 26, 2016, at 7:34 PM, Tony Allevato via swift-evolution <[email protected]> wrote: > Would something like this be possible? Imagine protocols defined like this: > > public protocol Equatable { > static func == (lhs: Self, rhs: Self) -> Self > }
The problem is that every type that conforms to Equatable has to provide an overload of == in order to conform. This is exactly what having named methods as requirements solves. -Chris _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
