2 ms·
Java has finally got options, so at least it's theoretically possible to start a migration path to non-nullable. It will take decades though.
by lmm 10y ago
Java has finally got options, so at least it's theoretically possible to start a migration path to non-nullable. It will take decades though.
- kodfodrasz 10y agoI 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>