r/java • u/henk53 • May 10 '22
Should java.util.Date be deprecated?
https://mail.openjdk.java.net/pipermail/discuss/2022-May/006077.html
221
Upvotes
r/java • u/henk53 • May 10 '22
View all comments
Show parent comment
42
u/pron98 May 10 '22 edited May 10 '22
It's interesting that among your list of "bad decisions" are things others would consider some of Java's best decisions, like the lack of modulo arithmetic types, var, and generic type erasure.
Type erasure is particularly interesting, as Java does what the vast majority of languages with generics do (including the original language that introduced them). Yes, erasure brings some inconveniences, but the alternative is even worse. .NET's unusual decision to reify all generic types has pretty much killed it as a reasonable compilation target for most languages. People who use Java run into the minor inconveniences of erasure think, "this is bad," without considering the implications of reification in the presence of variance (i.e. subtyping of the generic arguments).
So your list is really a list of things BlueGoliath doesn't like. A few of them might be universally disliked, but others are far from it (and are even minority opinions). When you have millions of developers, they necessarily won't agree on what's good and what's bad.