At 11:58 AM 8/13/2001 -0700, Hong Zhang wrote:
>This style is not very consistent,
> > if (...) {
> >   ...
> > }
> > else
> > {
> >   ...
> > }
>
>I believe it would better be
>
>/* comment */
>if (...) {
>   ...
>}
>/* comment */
>else {
>   ...
>}

Yes, absolutely. Being able to put meaningfully placed comments is a good 
enough reason for the uncuddled style.

>BTW, I am not sure it has been mentioned already. We should enfore
>{} even for single line block. Since we use plenty of macros that
>may be expanded to multi lines, it is much safer and consistent
>to always use {}.

Absolutely. No single-line blocks--everything must have {} around it.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to