Kotlin allows you to define functions and properties at the top level of your files. That’s a great feature, but it can cause some confusion when combined with the fact that all top level declarations are referenced unqualified from Kotlin.
Kotlin: The Good, The Bad, and The Ugly
AJ Alt
1319
If you’re afraid that a short name won’t be clear enough without a namespace, why not… just use a more descriptive name? `foo_myClass_to_Something` instead of `foo`? Has basically the same effect.