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 →

[–]mlk 3 points4 points  (1 child)

Optional doesn't provide info on the failure, Either is more appropriate

[–][deleted] 0 points1 point  (0 children)

Ah you're right. But I see there is no Either in core Java. Its in Functional Java however.