Is there any discussion around "import on demand" ...
# language-evolution
d
Is there any discussion around "import on demand" from objects? Constants.kt:
Copy code
package foo.bar

data object Constants {
    val first = 1
    val second = 2
}
Main.kt
Copy code
import foo.bar.Constants.*

fun main() {
   println("$first is first. $second is second.")
}
y
Seems likely related to namespaces.
d
It works when "Constants" is a Java class with static members. I would just like the same (or similar) kind of behavior for objects.