Every Swift Value Type Should Be Equatable

Andrew Bancroft: To be truly equal, the == operator not only needs to be implemented, but it needs to be implemented in such a way that it behaves as we’d expect when doing our comparisons. During the talk, Doug mentioned three important properties of equality that need to hold for our Value Types: The comparison … Continue reading Every Swift Value Type Should Be Equatable