Changes between Version 3 and Version 4 of Code Style

Show
Ignore:
Author:
hannes (IP: 80.171.88.59)
Timestamp:
2008-08-03 09:18:10 (2 years ago)
Comment:

braces

Legend:

Unmodified
Added
Removed
Modified
  • Code Style

    v3 v4  
    9090== Braces == 
    9191 
    92 Even if you only have one statement after if, for or whatever, use braces (it avoids some of the most annoying errors). Use OTBS, i.e. put the opening brace in the same line as the control statement and the closing brace in its own line (on the same indentation level as the control statement) 
     92Even if you only have one statement after if, for or whatever, use braces (it avoids some of the most annoying errors). Put the opening brace in the same line as the control statement and the closing brace in its own line (on the same indentation level as the control statement) 
    9393 
    9494=== Example ===