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

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to