Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

Changes between Version 8 and Version 9 of StyleGuide


Ignore:
Timestamp:
Feb 28, 2014, 7:22:58 AM (10 years ago)
Author:
MarkDoliner
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StyleGuide

    v8 v9  
    4141{{{
    4242#!c
    43 for (i = 0; i < x; i++) ..
     43for (i = 0; i < x; i++) {
     44        ...
     45}
    4446
    4547some_function(var1, var2);
     
    5759// don't use this style--we don't like it
    5860
    59 /* Use this kind of comment for a single line... */
     61/* Use this kind of comment for a single line. */
    6062
    6163/* And if you have a comment spanning multiple lines,
     
    7981        /* misc, other */
    8082}
     83}}}
    8184
    8285
    8386== Variable Declarations ==
    84  * Prefer declaring each variable on its own line. This makes diffs easier to read and reduces churn.
     87 * Prefer declaring each variable on its own line. This makes diffs easier to read and reduces churn. It also makes the code more clear when one variable is given an initial value but another is not.
    8588 * Use const for variables that don't need to change or be deallocated.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!