JavaScript:SpiderMonkey:C++ Coding Style: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Update with a macro section per bug 623435 comment 6.)
No edit summary
Line 24: Line 24:
* Line continuation characters should all line up, in column 79 if that exceeds the width of all the macro text.
* Line continuation characters should all line up, in column 79 if that exceeds the width of all the macro text.
* Macro parameters should be of the form name_ (instead of something like __name).
* Macro parameters should be of the form name_ (instead of something like __name).
== Enums ==
Older code uses SHOUT_REALLY_LOUD for enum values, newer code uses InterCaps. Enums should be preferred to boolean arguments for ease of understanding at the invocation site.


== Classical OOP ==
== Classical OOP ==
29

edits

Navigation menu