Java 8’s new Optional type is worthless
W. Brian Gourlie
8214

My open source library motif (https://github.com/johnlcox/motif) supports pattern matching in Java 8, including on the Optional type. It doesn’t provide compile time guarantees, but it will fail fast at runtime if only one of the two Optional cases is handled, so it at least gets part way there.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.