Introducing Cobra
SJS
bpfh at stremler.net
Wed Jan 2 16:13:06 PST 2008
begin quoting David Brown as of Wed, Jan 02, 2008 at 04:08:38PM -0800:
> On Wed, Jan 02, 2008 at 03:59:26PM -0800, SJS wrote:
>
> >When I see
> >
> > if ( blah )
> > doSomething();
> >
> > blah();
> >
> >I either fix it, or I harass the author about it until they fix it.
>
> Sadly, the Linux coding standard forbids the braces when there is only one
> statement. The do require braces on both if and else when one of them is
> more than one line, though.
That just shows that coding standards can be stupid. :)
Embedding a coding standard in the language would therefore seem dangerous.
--
Even smart people can have stupid habits
Or take up silly causes, even raise rabbits
Stewart Stremler
More information about the KPLUG-LPSG
mailing list