Re: coding style

"h.g. muller" <[email protected]>
Newsgroups gmane.comp.gnu.xboard.devel
Message-ID <[email protected]>
>Guess this is a matter of taste... to me having those extra lines makes
>it a lot more readable than the other version... mostly because I find
>it easier to see where the block starts and ends by having the {} in the
>same column...

Well, that can be achieved without uing extra lines by writing the openig 
brace
on the same line as the firststatement (and closing braces on the same line as
a following else). Like

if(A)
{   x = 1;
     y = 2;
} else
{   x = 2;
     y = 1;
}

This is actually the style I used in my own programs.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.