[prog] C and curly braces - question of style?
aec
brat at magma.ca
Tue Aug 24 12:50:54 EST 2004
On Mon, Aug 23, 2004 at 11:10:54AM +1000, Jacinta Richardson wrote:
> In my experience there are way too many variations of placements of
> curly braces. However they can be reduced into roughly three groups:
>
> 1. curlies aligned with construct keyword. ie:
>
> while ( something > 0 )
> {
> if( somethingelse )
> {
> for ( i = 1; i < something; i++)
> {
> some code;
> some more code;
> }
> }
> }
>
This is the method I have adopted for now, but am aware of the others
and *if* I ever get to the point of actually working on a project
with other people, I would be prepared to change styles.
Thanks for all the answers!
--
Angelina Carlton
More information about the Programming
mailing list