Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pacala
· 14y ago · 0 comments
> Default methods provide a more object-oriented solution for this problem: people.sort(comparing(Person::getLastName));
Yay function pointers.
Comments
[–]
rforax
14y ago
and default methods are traits but it's a secret.