News for hackers. Stuff that matters.
Re:Var and val in Java? by exabrial on Saturday March 26, 2016 @03:54PM (#11367166)
Please. No. Java's beauty is that it is explicit, and that greatly reduces errors. Your IDE takes care of this crap anyway.
Re:Var and val in Java? by phaed on Saturday March 26, 2016 @04:46PM (#11367379)
I never once had a bug resulting from the use of C#'s var in 10 years of dev work. Not once.

And I disagree with OP's notion that adding var to Java is at the expense of the reader. There is no expense, var improves code readability dramatically.

These sound like arguments Java devs came up with through cognitive dissonance to hold on to the notion that Java's language features are superior to C#'s, they are not.

Re:Var and val in Java? by exabrial on Saturday March 26, 2016 @05:09PM (#11367451)
No, no need for the straw man attack. I don't think they're superior, but there already is "one way" to do it in Java, and it should stay that way to avoid creating a mess. Whether or not it is superior is likely a very subjective debate that I could argue both ways in.