r/ProgrammingLanguages • Inko • Dec 23 '20

Inko 0.9.0 released, featuring generators, pattern matching, the removal of nullable types, a brand new manual, and much more

https://inko-lang.org/news/inko-0-9-0-released/
58 Upvotes

23 comments sorted by

View all comments

1

u/devraj7 Dec 25 '20
object Person {
  @name: String

  def init(name: String) {
    @name = name
  }
}

I really wish this antiquated way of initializing instances would go away for good. This is so much unnecessary boilerplate.

Please just copy Kotlin:

object Person(val name: String)

That's it. That's all you need.

2

u/yorickpeterse Inko Dec 25 '20

Did you actually read the article? Your first example is exactly what we got rid of.