As I understand it, if we want to declare constant...
# announcements
s
As I understand it, if we want to declare constants, we have to use
const val
or
val
or
@JvmField val
in a companion object or file. All three approaches have drawbacks: 1.
const val
requirements primitives or Strings. 2.
val
involves a method call (at least when calling from outside; I'm not sure about inside). 3.
@JvmField val
is ugly. Is Kotlin going to address this situation? I think the status quo is not good.