[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] A matter of style
From: |
Greg Chicares |
Subject: |
Re: [lmi] A matter of style |
Date: |
Fri, 23 Feb 2007 12:52:52 +0000 |
User-agent: |
Thunderbird 1.5.0.4 (Windows/20060516) |
On 2007-2-23 12:36 UTC, Greg Chicares wrote:
>
>> switch(*i)
>> {
>> case '\n': {*j++ = ';';} break;
>> case '\r': { } break;
>> case '\t': {*j++ = ' ';} break;
>> default : {*j++ = *i;}
>> }
>
> "Replace newline with semicolon;
> drop carriage return; and
> replace tab with space; but
> ignore anything else."
- ignore anything else."
+ pass through anything else unchanged."
http://boost.cvs.sourceforge.net/*checkout*/boost/boost/more/coding_guidelines.html?revision=1.1.2.6
| Direct expression of concepts in code
| is much better than annotation in comments.
|
| Good comments do not replicate information
| already clearly visible in code
|
| Obvious code is harmed by commenting