parent
c822693d7e
commit
1e9cd4db01
@ -60,9 +60,10 @@ Methods & functions are named with an initial capital letter, as is common in ot
|
|||||||
|
|
||||||
We generally follow Google's rules for treating acronyms as though they are a single word with only an initial capital letter (`FpsCounter`, not `FPSCounter`), with the exception that if a name is *entirely* an acronym, it stays entirely in uppercase (`AABB`, not `Aabb`). Once it's incorporated into a longer identifier by smooshing it together with some other word, it loses the all-caps treatment (`AabbList`, not `AABBList`).
|
We generally follow Google's rules for treating acronyms as though they are a single word with only an initial capital letter (`FpsCounter`, not `FPSCounter`), with the exception that if a name is *entirely* an acronym, it stays entirely in uppercase (`AABB`, not `Aabb`). Once it's incorporated into a longer identifier by smooshing it together with some other word, it loses the all-caps treatment (`AabbList`, not `AABBList`).
|
||||||
|
|
||||||
Words in identifier names should be written out in full, with the following explicit exceptions which may be abbreviated:
|
Words in identifier names should be written out in full, with the following explicit exceptions which *may* be abbreviated:
|
||||||
* `pos` instead of `position`
|
* `pos` for `position`
|
||||||
* `rect` instead of `rectangle`
|
* `rect` for `rectangle`
|
||||||
|
* `deg` and `rad` for `degrees` and `radians`
|
||||||
|
|
||||||
### Namespaces
|
### Namespaces
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user