[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA-dev: [PATCH] gschem: Visual feedback for keyboard commands



MISRA is just afriad of crashes.

Steve Meier

On Fri, 2007-06-01 at 19:17 -0400, Bob Paddock wrote:
> On Friday 01 June 2007 14:50, Ales Hvezda wrote:
> 
> > if (...) {
> >   single_statement;
> > }
> > 
> > to:
> > 
> > if (...)
> >   single_statement;
> > 
> > Please, please, please don't go out of your way to make such changes.
> > I have discovered (through lots of pain maintaining other people's
> > code) that those brackets improve code clarity and help convey
> > programmer intent.  Yes, it is a stylistic choice/nit/whatever,
> 
> To support your position MISRA-2004, Rule 14.9:
> 
> "An if(expression) construct shall be followed by a compound statement...
> even a single statement must be in braces..."  There is an exception
> for if/else if/ trees, there must be a final else{}.
> 
> MISRA - The Motor Industry Software Reliability Association
> http://www.misra.org.uk/
> 



_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev