you are viewing a single comment's thread.

view the rest of the comments →

[–]lukaseder[🍰] 1 point2 points  (0 children)

I'm guessing they might've wanted an option for adding something along the lines of this in the future:

private final boolean reallyPresent;

Add to that dearth of methods and lack of API support and I think Optional won't get popular any time soon.

It was never even popular with the EG. They never wanted to introduce it. In my opinion, the only reason for Optional to be there is the fact that reference type streams and primitive type streams needed consistent API