Re: kernel guide to space

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

 



On Monday 11 July 2005 17:44, Dmitry Torokhov wrote:
> >        Descendant must be indented at least to the level of the innermost
> >        compound expression in the parent. All descendants at the same level
> >        are indented the same.
> >        if (foobar(.................................) + barbar * foobar(bar +
> >                                                                        foo *
> >                                                                        oof)) {
> >        }
> 
> Ugh, that's as ugly as it can get... Something like below is much
> easier to read...
> 
>         if (foobar(.................................) +
>             barbar * foobar(bar + foo * oof)) {
>         }
 
Even easier is
         if (foobar(.................................)
             + barbar * foobar(bar + foo * oof)) {
         }

since a statement cannot start with binary operators
and as such we are SURE that there must have been something before.
And this matches with old shop owner calculations like:

   1
+  2
+  3
----
   6

which we all know since early math classes.


Regards

Ingo Oeser


Attachment: pgpUi2rEM4kjB.pgp
Description: PGP signature


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux