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
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Mar 4, 2018 | Representing the Impractical and Impossible with JDK 10 “var” by pents90 | 105 | 128 |