Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This looks a lot like Swift (or rather, Swift looks a lot like Kotlin).


A 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.


> 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.


From what I see in the clip on the front page, some of the syntax is certainly reminiscent of Groovy as well


I 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.


ML actually


I think GP meant (1) the use of "it" as the implicit name of a single argument closure and (2) string interpolation syntax.


It would have looked a lot more similar had the earlier planned pattern matching support for Kotlin was implemented.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: