Make '==' have a default behavior similar to IEqualityComparer<T>.Default ? #7645
Replies: 2 comments
-
That ship sailed 22 years ago. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing out. This is one of many duplicate issues from the same user. Please do not keep spamming us for the same request. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think
==
should have a default behavior similar toIEqualityComparer<T>.Default
, rather than having to be manually implemented. Since the existing code that did not manually define==
never use==
for non-default behavior, so perhaps this situation can be changed without affecting existing code. This way, there's no need to restrict the use of==
to generic types that implement the==
interface.Beta Was this translation helpful? Give feedback.
All reactions