Coding style - upper or lower case for enum elements?

greatpet
Sun, 03 Dec 2023 14:25:43 +0000
General Usage

The Julia manual for enum has the example

@enum Fruit apple=1 orange=2 kiwi=3

According to some style guides for Julia, global constants should be UPPER_CASE, so should I write

@enum Fruit APPLE=1 ORANGE=2 KIWI=3

instead?

I know this is a subjective question, but I’d like to hear subjective opinions.

1 post - 1 participant