Why does `const` only work on `object`? I find mys...
# announcements
f
Why does
const
only work on
object
? I find myself defining companion objects only for the sake to declare constants for a class. Wouldn't it be useful to be able to declare
const
on
val
fields of an class (which would obviously require that they cannot depend on other non-const fields) and have them translated to static final fields in Java.