C
C#15mo ago
palapapa

✅ Should I implement `IEqualityOperators` for a record?

It makes me wonder why the compiler doesn't automatically implement IEqualityOperators for all record types even though it already automatically overloads operator== and operator!= for all record types.
1 Reply
ero
ero15mo ago
https://github.com/dotnet/csharplang/discussions/7221 if you have a requirement for IEqualityOperators anywhere, then you can add that interface otherwise i see no reason
Want results from more Discord servers?
Add your server