News for hackers. Stuff that matters.
Re:Gosu – A pragmatic language for the JVM by carsongross on Thursday July 24, 2014 @11:20AM (#8080024)
You can do that the way you'd expect:

    var strings = new ArrayList<String>() { "red", "green", "blue" }
Re:Gosu – A pragmatic language for the JVM by ape4 on Thursday July 24, 2014 @12:18PM (#8080436)
Thanks. That's interesting. Is there a global setting to always use ArrayList instead of List? Actually maybe global is too much... per file setting.
Re:Gosu – A pragmatic language for the JVM by lboasso on Thursday July 24, 2014 @12:24PM (#8080481)
So by default the type inferred is ArrayList, if you want a different type you just specify it.

ex. var strings = { "red", "green", "blue" } //ArrayList

var strings2 : LinkedList<String> = { "red", "green", "blue" }

Re:Gosu – A pragmatic language for the JVM by ape4 on Thursday July 24, 2014 @04:18PM (#8081936)
thanks