Snake_case for enum values?

On the aesthetics of programming, how do you all feel about using snake_case for enum values like so:

Some_Enum :: enum {
    some_value,
    another_value,
}

Because of implicit selectors I think you can name your enum values whatever you want and I feel weird about writing it with the first letter capitalized: Some_Value, because that is used for types.

2 Likes

personally I think sarcasm case is best to differentiate enums

sOmE_eNuM :: enum {
      ...
}
5 Likes

Lol, Yeah I never follow conventions, I just write whatever I feel at the moment, for types I add a _t at the end. People that works on a team or writes public libraries should follow conventions.

Do whatever you want but be consistent.

I am closing this because this is a bikeshedding topic.

4 Likes