From time to time, I kinda feel that I need to imp...
# language-proposals
k
From time to time, I kinda feel that I need to impose a constraint on object initialization. What do you guys feel about support constructor in interface? E.g.
Copy code
interface JSONConstructible {
    fun init(j: JSON)
}

class Foo : JSONConstructible {
    constructor(j: JSON) {
    }
}