5 ms·
This looks a lot like Swift (or rather, Swift looks a lot like Kotlin).
by martingordon 12y ago
This looks a lot like Swift (or rather, Swift looks a lot like Kotlin).
- dodyg 12y agoIt would have looked a lot more similar had the earlier planned pattern matching support for Kotlin was implemented.
- mike_hearn 12y agoA lot of modern languages look like this now. You could as well say they both look like Scala. But then, Scala also riffs off languages like Haskell in some vague syntaxy way. Swift, I think, is strongly influenced by design trends in modern programming languages. I didn't see a whole that in it that was new though.
- owlish 12y agoFrom 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.
- pjmlp 12y ago> Swift, I think, is strongly influenced by design trends in modern programming languages. Which is quite good, given the language that shall not be named, and is quite upvoted at HN.