I prefer braces for grouped statements as well for single statements, simply for consistency and clarity.

Mislav Marohnić schreef:
On 9/29/06, *Gavin Vess* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    .. although the Linux Kernel team does not use braces when there
    is only
    one statement after the conditional.  I would prefer we follow this
    standard more closely, and eliminate braces around a single statement.
    Anyone else have this preference?


Why not? Braces are for grouping statements in a conditional, loop or even a function/method. There is no sense in grouping just one statement, and languages know that very well.

I'm following this thread and it seems to me like we're trying to strictly specify the coding standard for a code-generating robot, not for a community of humans. Maybe we're going too far with this?

--
Mislav

Reply via email to