3 ms·
Optional is Java's impoverished version of Maybe: https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/util/Optional.html https://docs.oracle.com/
by oftenwrong 8y ago
Optional is Java's impoverished version of Maybe:
https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/util/Optional.html https://docs.oracle.com/en/java/javase/12/docs/api/java.base...
Of course, an Optional reference can still be null because it's still Java. There are also other implementations of Maybe-like types, and implementations of Either-like types, etc in the Java ecosystem.