At 07:12 PM 10/2/2003, Greg Stein wrote:
>On Thu, Oct 02, 2003 at 05:38:12PM -0400, Cliff Woolley wrote:
>>
>> So this is NOT intended to be the catalyst for a huge heated debate, it's
>> just a suggestion, but I propose the following tweaks to the styleguide.
>> For the most part, it's just clarifying the English. The only real
>> changes are ones intended to codify two items most of us already do
>> anyway: (a) if there is a multi-line conditional expression (with
>> if/for/etc), then you put the { on the next line to separate the code from
>> the condition; (b) all blocks should have {}'s, even if they are only one
>> line long.
>
>Agreed, with one minor mod to multi-line conditionals:
>
>>...
>> if (foo && bar && baz &&
>> quux && crash && burn)
>> {
>> then();
>> }
>
>"should be":
>
> if (foo && bar && baz
> && quux && crash && burn)
> {
> then();
> }
++1 and I agree with all the rest of the sentiments (I was about
to shoot off the same note as Greg - glad I'm reading ahead again :-)