Felipe Álvarez
10/09/2019, 3:29 PMprivate static final attributes to avoid memory footprint and object creation. In Kotlin, I created a companion object with a private const val but when decompiled code shows a new inner static class is created, does this create more memory footprint than the Java counterpart? Is there a better way to define constant which should be used only in one class?karelpeeters
10/09/2019, 5:36 PM@JvmStatic on the companion object values if you've determined the overhead does matter for your application.ghedeon
10/12/2019, 6:37 AMFelipe Álvarez
10/12/2019, 5:52 PMprivate static final inside. I'm more worried about memory footprint than boilerplate. Although, I agree the whole companion object thing reminds me of Java verbosityHullaballoonatic
10/30/2019, 5:51 PMmutableListOf(...), 1.0 + 1.toDouble(), and the aforementioned, but more than makes up for it in almost every other area in that regard