Dodo doc > Syntax > Literal Values > Enum values


Enum values

Enum values are identifiers which associated value is their name. An enum value starts with a lower case letter or with a single underscore followed by a non-capital Unicode letter. This syntax is described in more details in the Variables section. In addition, enum values can start with a single underscore followed by a capital letter then more underscores, capital letters or digits.

Enum values can be compared for equality and used as keys for maps.

Examples:

_après-midi
_LEFT_ALIGNMENT
blue
january
Rationale: enum values have all kinds of use, and can efficiently substitute for string literals.

^ 2.4.3. Special Characters

v 2.4.5. Collection Literals