3 ms·
From what I see in the clip on the front page, some of the syntax is certainly reminiscent of Groovy as well
by owlish 12y ago
From what I see in the clip on the front page, some of the syntax is certainly reminiscent of Groovy as well
- pjmlp 12y agoML actually
- mavelikara 12y agoI think GP meant (1) the use of "it" as the implicit name of a single argument closure and (2) string interpolation syntax.
- vorg 12y agoI don't see it from the clip... data class Customer(val name: String, val email: String) fun main(args: Array<String>){ val customer = Customer("John Smith", "john.smith@somewhere.com") println(customer) println("Hello Kotlin") } A "data" keyword, "val" and "fun" instead of "def", types postfixed with a colon after the identifier, no "new" keyword for initialization.