Thread
#feed
    bruno.aybar

    bruno.aybar

    4 years ago
    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
    Mark Gilchrist

    Mark Gilchrist

    4 years ago
    I thought it was a very well written article 👍
    bruno.aybar

    bruno.aybar

    4 years ago
    Thanks!
    i

    ianbrandt

    4 years ago
    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:
    object Constants {
        val PERMISSIONS = listOf("Internet", "Location")
    }
    If you try to invoke that function from Java, you would have to write:
    Utils.INSTANCE.getPERMISSIONS()
    bruno.aybar

    bruno.aybar

    4 years ago
    Oh, you're totally right, I'll fix it. Thanks Ian!
    d

    Dennis Cornwell

    4 years ago
    Really wish I had that article when I was first learning about Kotlin/Java interop. Well done
    bruno.aybar

    bruno.aybar

    4 years ago
    Thanks Dennis 😄