News for hackers. Stuff that matters.

J446

Re:Help - being forced to use IE 6 SP1 on Friday August 24, 2012 @02:45PM (#4429020)
I don't know whether to laugh or cry...
Re:Typesafe raises $14M to commercialize Scala on Wednesday August 22, 2012 @04:28PM (#4419408)
don't forgot to add Hibernate to that for everyone still living in 2004
Re:Double Brace Initialization in Java on Sunday August 19, 2012 @11:17AM (#4404213)
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.

Re:Double Brace Initialization in Java on Sunday August 19, 2012 @11:10AM (#4404193)
Collection literals for inclusion in JDK8:

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