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

I must admit I do not fully understand this bit. Is it only applicable to non copyable types? How would I be able to even attempt to compare the two (presumably identical) variables if the type is non copyable to begin with? (without always getting a known result of false, I mean). Could you give an example?

This bit is fully understandable. Yes, there could be some false negatives due to padding, which is not guaranteed to be zeroed. Not a show stopper on my list as it doesn't break the semantic contract (false positive would), but YMMV of course.

Great detective work, thank you.

So Int and other similar types would return nil in their isKnownIdentical implementation?

1 Like