Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lazulicurio
· 3y ago · 0 comments
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.
Comments
[–]
devman0
3y ago
That is somewhat fixed by Comparable, but the fact that HashMap doesn't have a pluggable Hash override always bothered me.