3 ms·
I tried to use the java Optional<T>, but the API has some points, which make it inconvenient for some usecases. (Some of these are addressed in Java 9) As I se
by kodfodrasz 10y ago
I tried to use the java Optional<T>, but the API has some points, which make it inconvenient for some usecases. (Some of these are addressed in Java 9)
As I see: unfortunately without algebraic types you cannot solve this properly, even if you address the lacking points in Optional<T>