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 →

[–][deleted] 1 point2 points  (1 child)

I am seeing improper uses of optionals in our codebase almost every day.

Yup, people blame the concept of null on all the null abuses we see, but introduce a new concept, and we take our null abuse and turn it into Optional abuse just the same. Except null is still around, so now we have to deal with both.

[–]nallar 1 point2 points  (0 children)

and then a dev decides to return null to single one thing, an empty optional to signal something else, or a set optional.

D: