Rant One
Matt Quail, points to Sun’s Bug Parade evaluation of variance, in which a Sun representative states:
Based on feedback within Sun, we are unlikely to do this for Tiger.
What does “Based on feedback within Sun” mean? It could mean any of:
Most likely, it means none of these. The point is that uninformative statements like “based on feedback within Sun” make it very clear that Java is Sun’s game and nobody else’s. Sometimes their decision making process is in the open, sometimes it’s closed, but Sun make the rules and we just have to trust them if we want to be on the Java bandwagon.
Rant Two
Commenting in Matt Quail’s blog, Mats Henricson rightly points out that the type safety argument is a red-herring.1
On the other hand, there are other, real benefits to be had from more being explicit about the type of collection variables:
I’ll be happy to see casting go. It’s always been the ugliest part of day-to-day Java coding2.
PS: Every argument for not explicitly typing all variables in Java is an argument in favour of Python.
1 Me too.
2 Not counting add-ons like JSPs and EJBs.
Comments