mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Documentation: Document preference for SCREAMING_CASE constants
This commit is contained in:
parent
01ca7e0544
commit
259a84b7b6
Notes:
sideshowbarker
2024-07-17 05:23:40 +09:00
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user