In kotlin, I define some static public const like ...
# announcements
f
In kotlin, I define some static public const like this
Copy code
object CONST {
    const val SERVER_URL = "<https://storage.googleapis.com/>"
}

object CONFIG {
    const val CONFIG_NAME = "name"
}
Is it a good practice in kotlin? if not, do we have other better ways to define static public const ?
👌 2