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.
[ Parent
| on HN ]
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" }