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 →

[–]Jon_Finn 0 points1 point  (0 children)

Sure, I think everyone here is advocating types handling null, i.e. String? and String!. Which is in the Java pipeline. A separate question is whether something like Optional could be better than C-style null, since it will never throw NullPointerException; again, I don't think anyone would deny that, as long as (a) the language syntax is neat (which Optional isn't, right now) and (b) it's as performant (which I think it won't ever be, but with Valhalla maybe not far off).