Re: [Etherboot-developers] Indent Style
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: <ke...@us...> - 2002-04-18 02:02:30
|
>Hi
>
>Is there an indent style used by most of the etherboot code?
>
>Tim
There is no official style but since a lot of the drivers are derived
from Linux, that style tends to be common. Personally I prefer this
block style:
if ( ) {
...
} else {
...
}
as it uses up fewer lines so you get more context on the screen. But as
long as your style is not idiosyncratic and you are consistent, speaking
for myself, I don't care. A confusing indentation can be fixed with
indent, but a confusing algorithm is harder to fix.
|