Hi, is it a problem to have a package contain the ...
# getting-started
j
Hi, is it a problem to have a package contain the word internal? ex:
com.company.internal.feature
?
c
It shouldn’t be a problem, I’ve got a library published where I’m doing this and it’s not causing any issues. The Kotlin documentation states that
internal
is a “Modifier Keyword”, which “acts as keywords in modifier lists of declarations, and they can be used as identifiers in other contexts” (source)
j
i don't see an issue either but I wanted to be sure. glad someone else is doing it. thanks!
y
Even the stdlib uses it as a package name for some of its internal annotations https://github.com/JetBrains/kotlin/blob/master/libraries/stdlib/src/kotlin/internal/Annotations.kt
❤️ 2
e
note that you should avoid Java keywords if you want to be able to use the library from Java or run KAPT