zsh-workers
 help / color / mirror / code / Atom feed
From: Alexandre Duret-Lutz <adl@src.lip6.fr>
To: Wayne Davison <wayned@users.sourceforge.net>
Cc: Peter Stephenson <pws@csr.com>,
	Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: zsh coding standards
Date: Mon, 29 Nov 2004 17:57:02 +0100	[thread overview]
Message-ID: <20041129165702.GA12630@src.lip6.fr> (raw)
In-Reply-To: <20041129164253.GA539@blorf.net>

On Mon, Nov 29, 2004 at 08:42:53AM -0800, Wayne Davison wrote:
>
> Use "{}" on an empty loop instead of ";" to make it more obvious that no
> looping statements follow.

     while (*++s == '/')
       continue;

I discovered this very readable style in Bison's sources recently, and
adopted it.


      parent reply	other threads:[~2004-11-29 16:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-29 11:57 [bug] fd leak when zchdir to TOOLONG paths Stephane Chazelas
2004-11-29 12:10 ` Peter Stephenson
2004-11-29 15:34   ` OT: Coding (was Re: [bug] fd leak) Bart Schaefer
2004-11-29 16:42   ` zsh coding standards Wayne Davison
2004-11-29 16:52     ` Peter Stephenson
2004-11-29 16:57     ` Alexandre Duret-Lutz [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=20041129165702.GA12630@src.lip6.fr \
    --to=adl@src.lip6.fr \
    --cc=pws@csr.com \
    --cc=wayned@users.sourceforge.net \
    --cc=zsh-workers@sunsite.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).