Constants
Naming Rules
Section titled “Naming Rules”-
Always start with a letter.
-
Only uppercase letters from
AtoZ. -
Numbers from
0to9. -
Word separator
_. -
🐍
Screaming snake case.CONSTANT_NAME -
❗ If the
constantis related toSafety, the name starts withF_:F_CONSTANT_NAME
Examples
Section titled “Examples”VAR_CONSTANT // ✅ Correct: CMD_FFFF_NIL : int := -1; // Null command STATE_0_INIT : int := 0; // Init. state PROV_FALSE: bool := false; // Provisional false PROV_TRUE: bool := true; // Provisional true STATUS_0_DONE: int := 0; // Status 0END_VARVAR_CONSTANT // ❌ Wrong: cmd_-1_nil : int := -1; // Null command State_0_Init : int := 0; // Init. state provFalse: bool := false; // Provisional false ProvTrue: bool := true; // Provisional true int_status_0_done := int := 0; // Status 0 ...END_VAR