How is it recommended to create constants in Kotlin? And what\'s the naming convention? I\'ve not found that in the documentation.
companion object {
//1
Values known at compile time can (and in my opinion should) be marked as constant.
Naming conventions should follow Java ones and should be properly visible when used from Java code (it's somehow hard to achieve with companion objects, but anyway).
The proper constant declarations are:
const val MY_CONST = "something"
const val MY_INT = 1