Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 409 Bytes

File metadata and controls

16 lines (12 loc) · 409 Bytes

Naming

You are expected to name enums the same as you would regular classes: WithCapitals.

The variants of enums are expected to be named in all capital letters, with underscores1

enum CarSeat {
    DRIVER,
    SHOTGUN,
    BACK_LEFT,
    BACK_RIGHT
}

Footnotes

  1. We call this convention "SCREAMING_SNAKE_CASE", which is silly. Snakes can't speak, let alone scream. I should know.