1. 10
  1.  

  2. 4

    Great article.

    Return null, get shot
    Anywhere we expose a value that is optional and could be null, we expose a Maybe. This clearly demarcates when and where a value may or may not be present, and forces us to be more explicit about what happens if it’s not there.

    Nice. I like C++, TIL about std::optional.

    1. 2

      I disagree, in Java. Every Java reference is already a Maybe. Accept it and own it. Using Optional is a lie and false sense of security.