Hacker News new | ask | show | jobs
by tmtvl 1131 days ago
Well, technically you do have the var keyword now.

  var x = MyAwesomeClassFactoryBeanTemplate.getBean().getFactoryInstance().createNewMyAwesomeClass(foo, bar);
1 comments

I am not super familiar with Java but that syntax typically implies type inference, which is not the same as not needing type annotations.
Not only is it type inference, it's limited to locally declared variables.