Better HN
topnewbestaskshowjobs
Log inSign up

J446

4 karma · joined Aug 19, 2012 (14y ago) · 4 submissions

Submissions

comment 14y ago · link · parent

I don't know whether to laugh or cry...

comment 14y ago · link · parent

don't forgot to add Hibernate to that for everyone still living in 2004

comment 14y ago · link · parent

That depends if you mean Java the language or Java the platform. Java the language is to include immutable collection literals in JDK8:

http://jcp.org/en/jsr/detail?id=337

Today Java lets you do the following:

List<String> myList = Arrays.asList("one", "two", "three");

Scala and Groovy which target the JVM let you do things like:

Scala: val myList = List("one", "two", "three")

Groovy: def myList = ["one", "two", "three"]

Then there's JRuby, Jython etc.

comment 14y ago · link · parent

Collection literals for inclusion in JDK8:

http://jcp.org/en/jsr/detail?id=337