Does JB state anywhere the recommended code style ...
# language-evolution
s
Does JB state anywhere the recommended code style for enums? I see many projects including JB are moving to CamelCase over SNAKE_CASE
Copy code
For enum constants, it's OK to use either all uppercase, underscore-separated (screaming snake case) names (enum class Color { RED, GREEN }) or upper camel case names, depending on the usage.
Also probably more a question of #CR7H6LTD5
c
In more modern times the recommendation tends to be CamelCase, but there hasn't been an official change because JB doesn't know how to migrate existing code
AFAIK almost all new libraries use CamelCase (Ktor, Compose…)