Hacker News new | ask | show | jobs
by moonchild 1131 days ago
self, javascript (v8), java (hotspot; generics are latently monomorphised according to hotness; also see 'invokedynamic'), apl (apl\3000)
1 comments

I don't think you can say that java "doesn't use type annotations".
Well, technically you do have the var keyword now.

  var x = MyAwesomeClassFactoryBeanTemplate.getBean().getFactoryInstance().createNewMyAwesomeClass(foo, bar);
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.