Constructors

Overall I'm really loving the Kotlin language.

There is one little thing that feels pretty awkward to me that I wanted to give my feedback:

There is an odd case in the syntax for constructors.

class Foo {

  private val firstBar:Bar = Bar()
  private val lastBar:Bar = Bar(); // Required semi-colon

  {
  // Constructor
  }

}

We are working on secondary constructors feature, and adding keyword in front of an initializer is one of the changes.

I know this is old, but I just wanted to say that I appreciate the init and constructor syntax. It’s been working well on both jvm and js backends.