[Pitch #2] Add `isKnownIdentical` Method for Quick Comparisons to `Equatable`

I am not sure I have enough context on this right now to give a good example. Maybe @lorentey can help with some more information on that?

Not to sound like a "broken record"… but my intention is that this pitch-proposal would ship without making its own strong opinions about specific concrete types from standard library that should override isKnownIdentical. My preference is for that decision to remain the domain of the library maintainers outside of this specific pitch-proposal design review cycle.

But if you are asking me for a "weak" opinion on this topic… then I would say that these are examples of standard library types that should return nil for isKnownIdentical:

  • Bool
  • Int
  • InlineArray

Again… I want the library maintainers to use their domain-specific knowledge and context to help them make those decisions on their own under the semantic and performance contract of the pitch-proposal. But my weak opinion on this topic is that Int should not expose a concept of identity equality.