In other languages like Swift, there is the possibility of creating a function extension that adds a new constructor.
Something like this:
// base c
Seems that there are not an official "function extension for constructors" but you can create a package-method that imitates a constructor
class Foo() { ... } fun Foo(stuff: Int): Foo = Foo().apply {setStuff(stuff)} fun main(args: Array){ println(Foo(123)) }