Colin McMillen 2020-02-25 22:35:01 +00:00
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`).
Words in identifier names should be written out in full, with the following explicit exceptions which may be abbreviated:
* `pos` instead of `position`
* `rect` instead of `rectangle`
Words in identifier names should be written out in full, with the following explicit exceptions which *may* be abbreviated:
* `pos` for `position`
* `rect` for `rectangle`
* `deg` and `rad` for `degrees` and `radians`
### Namespaces