# Constructors

**URL:** <https://discuss.kotlinlang.org/t/constructors/323>\
**Category:** Uncategorized\
**Created:** [February 26, 2015, 8:57pm UTC](https://discuss.kotlinlang.org/t/constructors/323 "2015-02-26T20:57:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nbilyk](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/nbilyk/32/1483_2.png) [@nbilyk](https://discuss.kotlinlang.org/u/nbilyk)\
**Post date:** [February 26, 2015, 8:57pm UTC](https://discuss.kotlinlang.org/t/constructors/323/1 "2015-02-26T20:57:28Z")

</div>

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.

```kotlin

class Foo {

   private val firstBar:Bar = Bar()
  private val lastBar:Bar = Bar(); // Required semi-colon
  {
  // Constructor
  }
}
```

---

<div class="post-metadata">

**Author:** ![orangy](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/orangy/32/1462_2.png) [@orangy](https://discuss.kotlinlang.org/u/orangy)\
**Post date:** [February 27, 2015, 7:43am UTC](https://discuss.kotlinlang.org/t/constructors/323/2 "2015-02-27T07:43:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nbilyk](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/nbilyk/32/1483_2.png) [@nbilyk](https://discuss.kotlinlang.org/u/nbilyk)\
**Post date:** [February 3, 2017, 12:18am UTC](https://discuss.kotlinlang.org/t/constructors/323/3 "2017-02-03T00:18:31Z")

</div>

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.
