AFAIK, Kotlin doesn’t let you alias packages, whic...
# language-proposals
m
AFAIK, Kotlin doesn’t let you alias packages, which Java has started to
Copy code
import com.example.mypackage

fun do() { myPackage.someFunction(42) }
Will this ever be (or is it already) supported?
m
@Rob Elliot I see that there are other people who also want it and I was correct to think that it wasn’t supported in Kotlin. But are there any plans to support it or what?
r
You can interpret the status and comments on the issue as well as I can. The issue has "Planned for: No planned for". On the positive side Mikhail Zarechenskiy (Lead Language Designer for Kotlin) updated the issue's summary 10 months ago, so perhaps that means it's at least on the radar?
m
@Rob Elliot Oh I don’t use YouTrack and missed the issue metadata. That sucks but I see, thanks!
y
A weird workaround would be to have every declaration wrapped in an object and by importing the object you kind of get that “namespaced”