118
edits
| Line 5: | Line 5: | ||
* But static native methods of JS objects have lowercase, underscore-separated or intercaps names, e.g., str_indexOf. | * But static native methods of JS objects have lowercase, underscore-separated or intercaps names, e.g., str_indexOf. | ||
* Function return types are on a separate line preceding the function name. | * Function return types are on a separate line preceding the function name. | ||
void DoThis() | * Function braces go on the line following the function name. | ||
void DoThis() // bad | |||
{ | |||
... | ... | ||
} | } | ||
void | void | ||
DoThis() | DoThis() // OK | ||
{ | |||
... | ... | ||
} | } | ||
edits