Do you know what is the best practice to hide code...
# multiplatform
a
Do you know what is the best practice to hide code from Java / Kotlin users? What I found is
@JvmSynthetic
which can be used to hide things from the Java API and the
internal
which can be used to hide things from the Kotlin API. My goal is to have idiomatic APIs for both Kotlin and Java users
t
Have you seen Jake's talk about kotlin APIs on IO'18?
a
Not yet. Can you point me in the right direction?
This one?

https://www.youtube.com/watch?v=st1XVfkDWqk

t
Yeah, there is a section about making API kotlin-friendly
a
He does not talk about what I'm asking 😞
I watched the talk
I'm still not sure about
internal
I mean it works but it seems a bit hacky