From: Greg Klanderman <gak@klanderman.net>
To: Zsh list <zsh-workers@sunsite.dk>
Subject: zero- vs one- based array indexing?
Date: Wed, 23 Sep 2009 12:50:19 -0400 [thread overview]
Message-ID: <19130.20939.395217.755549@gargle.gargle.HOWL> (raw)
Can someone give me a quick history of why zsh defaults to one-based
array indexing? Bash and ksh appear to use zero-based indexing, and
probably most CS types prefer that too. Would it be OK to add an
option to control just zero-based arrays separately from the other
changes KSHARRAYS brings?
thanks,
Greg
next reply other threads:[~2009-09-23 16:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-23 16:50 Greg Klanderman [this message]
2009-09-23 17:03 ` Peter Stephenson
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=19130.20939.395217.755549@gargle.gargle.HOWL \
--to=gak@klanderman.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).