Open popematt opened 5 months ago
Hash codes can be a quick way to check in an equals() implementation to see whether a deep comparison is required. We already cache the hashcode for StructElementImpl. Why not do it for ListElementImpl and SexpElementImpl?
equals()
StructElementImpl
ListElementImpl
SexpElementImpl
Hash codes can be a quick way to check in an
equals()
implementation to see whether a deep comparison is required. We already cache the hashcode forStructElementImpl
. Why not do it forListElementImpl
andSexpElementImpl
?