top | item 3455459

Web-based editor for Kotlin, JetBrains' new JVM language

24 points| cgbystrom | 14 years ago |kotlin-demo.jetbrains.com | reply

18 comments

order
[+] thebluesky|14 years ago|reply
Looks like a mildly cleaned up Java, was expecting something a little more interesting. Don't see much in the way of functional programming or worthwhile changes vs Java.

Was expecting a Scala competitor, but found a slightly better Java with some syntax sugar. It's "nice", but not really different enough to warrant the effort of switching to another language. As a Java dev for 10+ years Scala was an eye opener on what a language could really be, Kotlin is "nice", but sadly not that interesting.

Minor pet peave is they have retained even Java's verbosity for outputting text:

Kotlin: System.out?.println("Hi") Java: System.out.println("Hi") Scala: println("Hi") Ruby: puts("Hi")

[+] timclark|14 years ago|reply
If it compiles faster than Scala I will use it!

From reading the language specs it seems much more pragmatic than Scala (as does ceylon http://www.ceylon-lang.org/ or fantom http://fantom.org/).

I think if JetBrains thought that Scala was a better Java they would be using it instead of creating their own language.

[+] njs12345|14 years ago|reply
I was quite interested in Kotlin, but Xtend is already out, and does most of the interesting stuff.

I think there's definitely room for a "better Java" - most Java devs should be able to pick up Kotlin or Xtend and be more productive very quickly.

With regard to FP, I think the presence of closures is enough to do a large proportion of the things you'd want.. What do you see lacking in these?

[+] andrewcooke|14 years ago|reply
it has more than sugar - for example, the type system is extended to include handle nulls correctly - http://confluence.jetbrains.net/display/Kotlin/Null-safety - and it has extension functions (to solve (some of) the same kind of problems as scala's implicit conversions)

jetbrains is an interesting company. they have managed to produce a successful product (intellij idea) despite being in competition with a hugely successful open source project (eclipse). i was thinking about this just last night, when i gave up using eclipse in despair (maven nested projects, fwiw) and decided to upgrade my idea licence to the new release - it's impressive how much better it is. so they must have some smart people; i hope this works out.

[+] foobarbazetc|14 years ago|reply
System.out?

Really?

[+] thebluesky|14 years ago|reply
That's exactly the type of verbosity in Java that new languages should avoid. I'm a bit disappointed by Kotlin in general to be honest.