On 11/21/11 10:36 AM, Alec Taylor wrote:
Pfft, I much prefer (for readability) the non-brace version where possible.
Lets set our own standard, rather than follow someone elses.
Actually, this project is incubator. Do apache require a certain standard?
At Apache we need to follow the "Apache way", but that is mostly about
project management, legal requirements and other things.
Apache leaves all project related decisions to the project team.
Therefore we are free to decide which code conventions we want to
follow, or even if we want to follow some.
Back to the if with or without braces. In the current code base it is mixed.
The argument not to use the if without braces is that they are more
error prone,
because you can accidentally believe that a statement is inside the if
which is not.
Jörn