Join Slack
Powered by
Anyone knows why there is no refactor -> to con...
# announcements
m
miszmaniac
03/07/2018, 11:53 AM
Anyone knows why there is no refactor -> to constant (cmd+opt+c) action for Kotlin? Why can’t this just add something to companion object?:)
👍 1
s
spand
03/07/2018, 12:54 PM
In Kotlin constants should just be values outside the class. The shortcut part I have wondered myself also 🙂
m
miszmaniac
03/07/2018, 2:13 PM
sometimes it’s cool, but sometimes, you want to have constants assigned with object, like when you need to pass them around like V.GONE:)
2
Views
Open in Slack
Previous
Next