Brace style in C
utzoo!watmath!jcwinterton
utzoo!watmath!jcwinterton
Sun Oct 31 20:14:14 AEST 1982
Actually, where a C function is declared with parameters, I like:
name(p1, p2)
type p1;
type p2;
{
.
.
.
}
which naturally leads to:
if (cond)
{
.
.
.
}
so that, for consistency, I think that the style above gives the best
result. I don't strongly object to single statements enclosed in braces
except where text compaction is important. On the other hand, I find it
hard to support it, too.
John Winterton.
More information about the Comp.lang.c
mailing list