mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Miles Bader <miles@lsi.nec.co.jp>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: "Michael S. Tsirkin" <mst@mellanox.co.il>, linux-kernel@vger.kernel.org
Subject: Re: kernel guide to space (updated)
Date: Mon, 01 Aug 2005 11:15:55 +0900	[thread overview]
Message-ID: <buo8xzmcsh0.fsf@mctpc71.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <Pine.LNX.4.61.0507290929250.26861@yvahk01.tjqt.qr> (Jan Engelhardt's message of "Fri, 29 Jul 2005 09:40:14 +0200 (MEST)")

Jan Engelhardt <jengelh@linux01.gwdg.de> writes:
>>3i. if/else/do/while/for/switch
>>	space between if/else/do/while and following/preceeding
>>	statements/expressions, if any
>
> Why this? if(a) {} is not any worse than if (a).

Well it's harder to read (because it makes control constructs look more
like function calls).  And a bit uglier.

But anyway, coding styles are rarely about "worse" versus "better",
they're about keeping things consistent so that it's easier to read
code.

-Miles
-- 
Any man who is a triangle, has thee right, when in Cartesian Space, to
have angles, which when summed, come to know more, nor no less, than
nine score degrees, should he so wish.  [TEMPLE OV THEE LEMUR]

      parent reply	other threads:[~2005-08-01  2:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-28 14:53 Michael S. Tsirkin
2005-07-28 15:52 ` linux-os (Dick Johnson)
2005-07-28 16:45   ` John W. Linville
2005-07-28 16:40 ` Dmitry Torokhov
2005-07-29  7:29   ` Jan Engelhardt
2005-07-29  7:40 ` Jan Engelhardt
2005-07-29 10:13   ` Joost Remijn
2005-07-29 17:57   ` David Weinehall
2005-07-29 19:52     ` Jan Engelhardt
2005-07-29 20:13       ` David Weinehall
2005-07-30 11:41         ` Jan Engelhardt
2005-07-30 13:38           ` David Weinehall
2005-07-30 18:32             ` Jan Engelhardt
2005-07-30  9:58   ` Vincent Hanquez
2005-08-01  2:15   ` Miles Bader [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=buo8xzmcsh0.fsf@mctpc71.ucom.lsi.nec.co.jp \
    --to=miles@lsi.nec.co.jp \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miles@gnu.org \
    --cc=mst@mellanox.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®