JavaScript:SpiderMonkey:C Coding Style: Difference between revisions

Jump to navigation Jump to search
→‎Other whitespace: Clarify width limits
m (note for-loop newlines)
(→‎Other whitespace: Clarify width limits)
Line 74: Line 74:
= Other whitespace =
= Other whitespace =


* There used to be a strict 79-column limit per line.  The hard limit is now 99 columns, a change that dates to 2008. Break down lines that are too long.
* Code should fit within 99 columns; comments should fit within 80 columns; both figures include indentation. Break down lines that are too long.
** Overlong conditions break after each && or || operator.
** Overlong conditions break after each && or || operator.
** Other binary operators go at the front of the second line.
** Other binary operators go at the front of the second line.
Confirmed users
497

edits

Navigation menu