Coding style updates
Herb Lewis
hlewis at panasas.com
Mon Oct 22 18:32:35 GMT 2007
Michael Adam wrote:
>
> For that reason, I prefer *always* putting braces, even
> when there is just one return or goto command.
> If braces do have to be ommitted, then the command should
> at least be put in one line with the condition, as Metze
> proposed.
>
> Michael
>
I agree here. It is too easy to have someone use a macro as
the "one" line that then later gets changed to a multiline
macro and is now no longer what you intended in your code if
you do not have braces.
More information about the samba-technical
mailing list