[coreboot] [flashrom][PATCH] invalid local variable declaration

Stefan Reinauer stepan at coresystems.de
Tue Jun 23 13:51:21 CEST 2009


Hi, Luc,

I agree we should set standards as low as possible, and try to make it
easier for people to write good code, but..

On 23.06.2009 13:39 Uhr, Luc Verhaegen wrote:
> I personally dislike this, as it is only done to make it easier for 
> people to be lazy.
>   

Or to make the code more compact and easier to read.

> By being forced to declare variables at the beginning of blocks, people 
> are pushed towards creating smaller blocks and therefor expose natural 
> deliniations quicker.

While you may be right for many cases, I don't believe that cutting
features of a programming language automatically makes people write
better code. If it were, we'd all be writing firmware in Forth. ;-)

> Just because the compiler can handle it doesn't mean that you should 
> write less good code than you could.
>   
Just because the compiler allows you to declare variables inline does
not mean that you should create bigger code blocks or write worse code.



Stefan

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866





More information about the coreboot mailing list