Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: CVS commit: src/usr.bin/xlint



> Sounds good.  Will it mean that the following code is also preferred to
> use parentheses?  I like the simplicity without the parentheses, but for
> consistency and simplicity of the rule set, I'd also accept the
> parenthesized version.
>
>      snprintf(buf, sizeof buf, "%s%s", arg1, arg2);

FWIW, there's very little chance i'm *not* going to use this form.

i've always applied the general () rule here -- don't have them
unless it's either necessary *or* useful for comprehension, and
that rule clearly says do not use them for the above case.  so
maybe "prefer paren unless clear", allowing objective takes ;)


.mrg.


Home | Main Index | Thread Index | Old Index