One True Brace Style

K&R style - Named after Kernighan & Ritchie, because the examples in K&R are formatted this way. Also called kernel style because the Unix kernel is written in it, and the 'One True Brace Style' (abbrev. 1TBS).

  if (<cond>) {
    <body>
  }
See http://catb.org/~esr/jargon/html/I/indent-style.html


See: AlwaysUseBracesOnIfThen, BracesAroundBlocks, WhereDoTheBracesGo

CategoryCodingIssues, CategoryCee


EditText of this page (last edited March 23, 2011) or FindPage with title or text search