3 ms·
> maybe prevent the gotchas with missing equals, hashCode, and toString There's no actual gotcha to them not existing. It works perfectly fine in haskell or ru
by masklinn 2y ago
> maybe prevent the gotchas with missing equals, hashCode, and toString
There's no actual gotcha to them not existing. It works perfectly fine in haskell or rust for instance.
Although it's not a fundamentally useful change to make objects for which a sensible equals/hashcode is trivial not have it, and still have it for objects for which it's not. So without the ability to reach back and remove those properties being universal I fail to see what the point would be.