gEDA-dev: [PATCH] gschem: Visual feedback for keyboard commands
Bob Paddock
bob.paddock at gmail.com
Fri Jun 1 19:17:39 EDT 2007
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/
--
http://www.wearablesmartsensors.com/
http://www.softwaresafety.net/ http://www.designer-iii.com/
http://www.unusualresearch.com/
More information about the geda-dev
mailing list