Coffeehouse Thread

10 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Jetbrains Kotlin demo running online

Back to Forum: Coffeehouse
  • User profile image
    Ray7

    Jetbrains have posted an early demo of their Kotlin language online.

    http://kotlin-demo.jetbrains.com/

    They're aiming for the JVM and compiled Javascript, and are looking for developer feedback.

    Having played around with it for a bit, I certainly prefer the syntax to Scala, but that's probably just because I'm more familiar with Java.

  • User profile image
    rhm

    Looks like the kind of thing someone who'd only ever programmed in Java would design if they were trying to make something 1% better than Java. It's ugly and pointless.

  • User profile image
    Richard.Hein

    They couldn't get the demo landing page to render properly in IE9 it seems ... not an encouraging introduction.  Sad

  • User profile image
    Ray7

    , rhm wrote

    Looks like the kind of thing someone who'd only ever programmed in Java would design if they were trying to make something 1% better than Java. It's ugly and pointless.

    I imagine the reason it looks like Java is the same reason that C# looks like Java and Java looks a lot like C++: developer familiarity.

    Does make me wonder why they have decided to put colons all over the place. Doesn't do wonders for readablity in my opinion.

  • User profile image
    Ray7

    , Richard.Hein wrote

    They couldn't get the demo landing page to render properly in IE9 it seems ... not an encouraging introduction.  Sad

     

    Very true, but it's possible that their target market doesn't use IE for development.

  • User profile image
    Harlequin

    System.out?.println("Hello, world!")

    ...not pretty to look at even a Hello World example Smiley

  • User profile image
    Blue Ink

    , Ray7 wrote

    *snip*

    Does make me wonder why they have decided to put colons all over the place. Doesn't do wonders for readablity in my opinion.

    Apparently, Pascal postfix typing is all the rage these days, not sure why. That's one of the mistakes lots of wannabe Java killers are making... they add a few long needed features to the platform, and tons of syntax sugar, but they shoot themselves in the foot imposing an alien syntax.

    This said, the language includes a couple of features that I'd like to see in C#... the most interesting being the automatic type inference in code, as in:

    if (o is Foo) {
      o.SomeMethodUniqueToFoo();
    }

  • User profile image
    Bass

    It's the mathematical type syntax. They want to be "pure" as close to mathematics as possible, and trying to correct this "mistake" of infix notation. That's probably why.

  • User profile image
    Ray7

    , Bass wrote

    It's the mathematical type syntax. They want to be "pure" as close to mathematics as possible, and trying to correct this "mistake" of infix notation. That's probably why.

    Well there's maths and there's programming.

    I find this:

    myStr : String = s

    less readable than this:

    String myStr = s

     

  • User profile image
    Ray7

    , Harlequin wrote

    System.out?.println("Hello, world!")

    ...not pretty to look at even a Hello World example Smiley

    That is very very odd.

    I think it's because, by default, Kotlin objects are not allowed to be null, unless you say it is nullable when you declare it and you need to use the dereferencing checker (?.) when you access it.

    I imagine they are using the standard JVM library, which must be chock full of nullable types.

    They'll need to fix that, or it's going to make for some really messy source code.

     

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.