Hacker News
new
top
best
ask
show
job
JDK 28 EA Build 10 Now Available with JEP 401: Value Objects (Preview)
(
jdk.java.net
)
2 points
by
birdculture
5 hours ago
1 comment
MiroslavPokorny
an hour ago
I guess this is exactly why java.util.Optional is a single class instead of a hierarchy of EmptyOptional for Optional#empty() and NotEmptyOptional for non null values, then true polymorhphic dispatch would be leverage for #isEmpty and other members.