Benji Weber personal blog

Representing the Impractical and Impossible with JDK 10 “var”

Having benefited from “var” for many years when writing c#, I’m delighted that Java is at last getting support for local variable type inference in JDK 10. From JDK 10 instead of saying ArrayList<String> foo = new ArrayList<String>(); we can say var foo = new ArrayList<String>(); and the type of “foo” is inferred as…
Points
105
HN comments
128
Submissions
1
Cited by
0 commenters

Software EngineeringProgramming Languages2018

On Hacker News

SubmittedTitle on HNPointsComments
Mar 4, 2018Representing the Impractical and Impossible with JDK 10 “var” by pents90105128

More from Benji Weber

All 6 posts →

Related posts from the same era