[swift-evolution] [Draft] Rename Sequence.elementsEqual

Adam Kemp adam.kemp at apple.com
Tue Oct 17 23:40:33 CDT 2017

> On Oct 17, 2017, at 7:52 PM, Kevin Nattinger via swift-evolution <swift-evolution at swift.org> wrote:
> So, what I'm getting from this explanation is that `Equatable` is meaningless on its own; each class needs to document exactly what  "substitutability" means as implemented, and any code that uses `==` needs to check the documentation for that specific class and make sure the intended use ("context," as you say) aligns with the class's definition.

This is how it works in every language I’ve ever worked on that has a concept of overridable equality checks, including Objective-C.

More information about the swift-evolution mailing list