Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Defletter
30 days ago
|
parent
|
context
|
favorite
| on:
What if null was an Object in Java?
Yup. Your IDE will likely highlight it as an issue, but it's totally legal to return a null Optional. There's nothing special about it, it's just a wrapper class.
alkonaut
30 days ago
[ā]
Did the project to add value types to Java (Iām sure I heard of it a decade ago) never finish?
Defletter
30 days ago
|
parent
|
next
[ā]
Not yet, that's Project Valhalla iirc. It's coming along but hasn't been merged yet. I don't believe it's even a preview feature within the JDK yet.
steve_rambo
30 days ago
|
parent
|
prev
[ā]
https://openjdk.org/projects/valhalla
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: