I would like to do something like this: ```class S...
# android
l
I would like to do something like this:
Copy code
class 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