3 ms·
Sadly (as one developing a lot in Java) i think it won't happen anytime soon, and the community will ideologize it as "it is even better that we don't have it".
by kodfodrasz 10y ago
Sadly (as one developing a lot in Java) i think it won't happen anytime soon, and the community will ideologize it as "it is even better that we don't have it". :(
I hope I will be wrong.
ps: a language where non-nullable references are the thing would be the best.
- lmm 10y agoJava 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>