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

**URL:** <https://forums.swift.org/t/pitch-2-add-isknownidentical-method-for-quick-comparisons-to-equatable/80497>\
**Category:** Pitches\
**Created:** [June 16, 2025, 6:00pm UTC](https://forums.swift.org/t/pitch-2-add-isknownidentical-method-for-quick-comparisons-to-equatable/80497 "2025-06-16T18:00:31Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![allevato](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/allevato/32/385_2.png) [@allevato](https://forums.swift.org/u/allevato)\
**Post date:** [June 17, 2025, 9:46pm UTC](https://forums.swift.org/t/pitch-2-add-isknownidentical-method-for-quick-comparisons-to-equatable/80497/20 "2025-06-17T21:46:16Z")

</div>

> [@FlorianPircher](#):
>
> The main objection I have to `lhs.isKnownIdentical(to: rhs)` is that identity checking, like equality checking, should not treat the two sides differently. `a.isKnownIdentical(to: b)` should be the same as `b.isKnownIdentical(to: a)`. And it is. But `a?.isKnownIdentical(to: b)` is not the same as `b?.isKnownIdentical(to: a)` and that is easy to miss.

On this note, it's also worth pointing out that the section on [Argument Labels](https://www.swift.org/documentation/api-design-guidelines/#argument-labels) in the _Swift API Design Guidelines_ calls out the situation you're talking about, saying

> - **Omit all labels when arguments can’t be usefully distinguished** , e.g. `min(number1, number2)`, `zip(sequence1, sequence2)`.

While that does seem to focus specifically on the labels, I think there's an unstated implication that an API that doesn't distinguish between two (or more) arguments shouldn't privilege one of them by making it the receiver—and the prior art of functions like `min` and `zip` reinforce that.

---

_[View the full topic](https://forums.swift.org/t/pitch-2-add-isknownidentical-method-for-quick-comparisons-to-equatable/80497)._
