oblakr24
12/18/2017, 9:12 AMsindrenm
12/18/2017, 9:29 AMColor.RED
). But since enums aren't necessarily constant (i.e. immutable), I'm actually leaning towards pascal-casing them.
However, I believe this to be inherited from Java, and since it's not really defined otherwise anywhere, I'd guess most people would use the Java conventions here. Think I might be up for a change, though.hho
12/18/2017, 9:44 AMColor
) while the enum values are constants and therefore all-caps (RED
). Also, that way interoperability with Java is preserved best.sindrenm
12/18/2017, 9:44 AMAlso, that way interoperability with Java is preserved best.I approve of this point. 👍
hho
12/18/2017, 10:02 AMsindrenm
12/18/2017, 10:03 AM