https://kotlinlang.org logo
#announcements
Title
# announcements
l

LeoColman

07/04/2019, 3:35 PM
Do you think it's ok in this case?
a

Adam Powell

07/04/2019, 3:37 PM
Personally I went the other way and started
PascalCasing
my enums instead
l

LeoColman

07/04/2019, 3:38 PM
interesting
very interesting actually xD
a

Adam Powell

07/04/2019, 3:44 PM
also other public `val`s for the same reason; when you put them next to `object`s and sealed classes, as you've found, there doesn't seem to be much reason to leak the implementation details in the naming convention
it still seems kind of contentious when it comes to things like
MAX_VALUE
-type things that can be declared with
const val
and the official kotlin style guide is kind of vague on this
it permits both styles but it's not something so prescriptive that you could use linters to settle debates
k

karelpeeters

07/04/2019, 5:04 PM
Same here, PascalCase for most enums.
l

LeoColman

07/04/2019, 9:01 PM
That's very interesting
linters complain about pascal case too, tho
k

karelpeeters

07/04/2019, 9:03 PM
Just turn that off, we're not here to serve the linter!
l

LeoColman

07/04/2019, 9:22 PM
I know hahaha
I just wanted to know if it was a bad thing
2 Views