3 ms·
Java has so many deficiencies in its design that so many frameworks are invented to cover its flaws. Just give a real Optional type at a language level. It’s c
by didip 4y ago
Java has so many deficiencies in its design that so many frameworks are invented to cover its flaws.
Just give a real Optional type at a language level. It’s clearly possible in other JVM languages.
- rad_gruchalski 4y agoOther jvm languages compile to the byte code and fix this by inlining the optional transparently. What you mean by “at a language level” would break the byte code for jars compiled with older jdks.
- didip 4y agoBreaking backward compatibility is not the end of the world.
- bismuthcrystal 4y agoIt might not be, but is damn close to it.
- rad_gruchalski 4y agoMaybe not for you. I have experienced the Python 2 to 3. When I use Java, I’m happy I can rely on the compatibility.
- pgwhalen 4y agoThank god the Java language designers don’t share your point of view.
- mrkeen 4y ago> Java has so many deficiencies in its design that so many frameworks are invented to cover its flaws. Java the language has its flaws, but the frameworks make the situation worse. > Just give a real Optional type at a language level. It’s clearly possible in other JVM languages. It's not the presence of Optional that we need, it's the absence of nulls. And nulls are in all the libraries. And you also have to convince your fellow Java developers that null is bad.