Hacker News new | ask | show | jobs
by lazulicurio 1145 days ago
Yeah, having equals and hashCode on the root Object class is Java's biggest mistake, IMO. Although for a slightly different reason: equality is usually context-dependent, but having equals as an instance method ties you to one implementation.
1 comments

That is somewhat fixed by Comparable, but the fact that HashMap doesn't have a pluggable Hash override always bothered me.