florian
03/15/2016, 2:48 AMconst
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.