Documentation: Document preference for SCREAMING_CASE constants

This commit is contained in:
Linus Groh 2023-04-13 15:57:30 +02:00
parent 01ca7e0544
commit 259a84b7b6

View file

@ -11,7 +11,11 @@ We'll definitely be tweaking and amending this over time, so let's consider it a
### Names
A combination of CamelCase and snake\_case. Use CamelCase (Capitalize the first letter, including all letters in an acronym) in a class, struct, or namespace name. Use snake\_case (all lowercase, with underscores separating words) for variable and function names.
A combination of CamelCase, snake\_case, and SCREAMING\_CASE:
- Use CamelCase (Capitalize the first letter, including all letters in an acronym) in a class, struct, or namespace name
- Use snake\_case (all lowercase, with underscores separating words) for variable and function names
- Use SCREAMING\_CASE for constants (both global and static member variables)
###### Right: