Hi! For the folks getting started with Kotlin, I r...
# feed
b
Hi! For the folks getting started with Kotlin, I recently wrote this post about annotations. Feedback is welcome! https://medium.com/@bruno.aybar/annotations-for-your-java-friendly-kotlin-code-badfbedec14
👍 3
m
I thought it was a very well written article 👍
🙌 1
b
Thanks!
i
Towards the beginning of the article, did you mean to say
object Utils
instead of
object Constants
? E.g.: Let’s say you define a field inside an object / companion object in Kotlin:
Copy code
object Constants {
    val PERMISSIONS = listOf("Internet", "Location")
}
If you try to invoke that function from Java, you would have to write:
Copy code
Utils.INSTANCE.getPERMISSIONS()
b
Oh, you're totally right, I'll fix it. Thanks Ian!
👍 1
d
Really wish I had that article when I was first learning about Kotlin/Java interop. Well done
👍 1
b
Thanks Dennis 😄
👍 1