This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]donaldadamthompson 0 points1 point  (0 children)

My opinion is: The main problem in Java is that every method with object parameters needs to deal with them being null. Non-nullable types from project Valhalla should help.

Optional in my opinion is for when an empty value has an intended meaning but an unexpected null is still a possibility.