Become a member
Sign in
I hate “Optional”. Such a useless idea.
1
Stefan Reich
William Bartlett
William Bartlett
Sep 9, 2018 · 1 min read

Then you should read Effective Java 3rd Edition by Joshua Bloch. Item #55 has some good guidelines for when to use Optional and when not to use it. Item #54 is similar in that it suggests avoiding returning null when the return type is a collection.

    William Bartlett

    Written by

    William Bartlett

    Write the first response

    Discover Medium

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

    Make Medium yours

    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

    Become a member

    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade
    AboutHelpLegal