Join Slack
Powered by
I understand const does not work for fields
# getting-started
f
ferbeb
10/17/2017, 4:23 PM
I understand const does not work for fields
k
karelpeeters
10/17/2017, 4:40 PM
Generally you'd put them outside of the class, the companion object is the next best place.
karelpeeters
10/17/2017, 4:40 PM
There's no point in having the same constant be a field in every class instance.
f
ferbeb
10/17/2017, 4:52 PM
I see, thanks.
3
Views
Open in Slack
Previous
Next