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.
- Timestamp:
-
Feb 28, 2014, 7:22:58 AM (10 years ago)
- Author:
-
MarkDoliner
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v8
|
v9
|
|
41 | 41 | {{{ |
42 | 42 | #!c |
43 | | for (i = 0; i < x; i++) .. |
| 43 | for (i = 0; i < x; i++) { |
| 44 | ... |
| 45 | } |
44 | 46 | |
45 | 47 | some_function(var1, var2); |
… |
… |
|
57 | 59 | // don't use this style--we don't like it |
58 | 60 | |
59 | | /* Use this kind of comment for a single line... */ |
| 61 | /* Use this kind of comment for a single line. */ |
60 | 62 | |
61 | 63 | /* And if you have a comment spanning multiple lines, |
… |
… |
|
79 | 81 | /* misc, other */ |
80 | 82 | } |
| 83 | }}} |
81 | 84 | |
82 | 85 | |
83 | 86 | == 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. |
85 | 88 | * 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!