Join Slack
Powered by
<@U0BA7APAP> That question was asked at <#C4GKV43N...
# android
m
marstran
11/16/2017, 11:47 AM
@spirosoik
That question was asked at
#codingconventions
a couple of days ago. They agreed upon having it as a
private const val
at file level (outside the class).
💯 1
s
spirosoik
11/16/2017, 11:47 AM
thanks Marius.
l
lupajz
11/16/2017, 12:43 PM
The reason there is simple. You avoid generation of another class and static reference to object of that class that will hold your String field.
s
spirosoik
11/18/2017, 11:55 AM
yes with companion object the byte code is insane. a whole class with a static ref.
2
Views
Open in Slack
Previous
Next