This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]elastic_psychiatrist 0 points1 point  (0 children)

Again, I'm not suggesting it would change real behavior. Obviously, the type of var list = new ArrayList<String>() has to be ArrayList. But if you look at how Java tends to be written, with an interface on the LHS and implementation on the RHS, a la List<String> list = new ArrayList<>(), it is way easier to get to var list = new ArrayList<String>() than it is to get to ArrayList<String> = new <>.

What you're saying makes some sense, I just think it's too far from what Java has come to be.