Can't you configure every IDE to notice if the if statement is not
within braces?

(you can also configure emacs and vim to notice)

I find that if your coder can't even notice when his conditional or
loop is greater than 2 lines and thus requires braces, then that coder
isn't any good.

On Mon, Nov 21, 2011 at 8:52 PM, Jörn Kottmann <[email protected]> wrote:
> 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

Reply via email to