Closed
Description
Default implementations of Equals()
and GetHashCode()
now throw. It is expected for them to be implemented by users. How this was done though, does result in a lost opportunity. See comment below.
This is an unfortunate consequence of throwing.
We'd otherwise be able to treat
InlineArray
of primitive types as bitwise equatable and allow them to participate in some of the vectorization speedups.
It would be nice if there was a better way to allow users to override the default while still opting their types into bitwise equality support.
Originally posted by @tannergooding in #103612 (comment)