JavaScript:SpiderMonkey:Coding Style: Difference between revisions

Jump to navigation Jump to search
Line 22: Line 22:
* Scalar type names are lowercase and js-prefixed: jsdouble.
* Scalar type names are lowercase and js-prefixed: jsdouble.
* Aggregate type names are JS-prefixed and mixed-case: JSObject.
* Aggregate type names are JS-prefixed and mixed-case: JSObject.
* Macros are generally ALL_CAPS and underscored, to call out potential side effects, multiple uses of a formal argument, etc.
* Macros are generally ALL_CAPS and underscored, to call out potential side effects, multiple uses of a formal argument, etc.  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).


= Indentation =
= Indentation =
Confirmed users
1,345

edits

Navigation menu