Lilly
05/16/2021, 4:02 PMclass Something(val memeber: Int) {
val namespaceA = object {
fun print() {
println(member)
}
}
val namespaceB = object {
fun doSomethingElse() {}
}
}
Can I keep it like it is or should I go with inner class
. I found an kotlin issue from 2013 where someone mentioned this is a workaround for having object expressions within a class but this would become obsolete in favor of inner classes but not sure if I understand it right