From: Felipe Contreras <felipe.contreras@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Unset and $empty[(i)] and $empty[(I)] -- worth the effort?
Date: Wed, 23 Dec 2020 17:04:09 -0600 [thread overview]
Message-ID: <CAMP44s1h2=B1N35bpuBXfChnSkErGzCkAoRwZ-g9rBvTf3CKrw@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7aQNk4g6y2NZC0skZg+1RxKZH5GAXM1Gi6PUYi58Aa27g@mail.gmail.com>
On Mon, Dec 7, 2020 at 5:13 PM Bart Schaefer <schaefer@brasslantern.com> wrote:
> Given that the behavior on $emptystr is already poorly defined, I'm
> not sure it makes much sense to put any effort into making the
> uninitialized $emptyarr case differ from the $notset case.
True. I misunderstood what $arr[(i|I)] did, and I can't find any
documentation about them.
But given what I can gather from the tests, it probably is not a
use-case that anybody would care deeply about, ever. If it turns out
somebody does, that can be fixed later.
That's my two cents.
Cheers.
--
Felipe Contreras
next prev parent reply other threads:[~2020-12-23 23:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-07 23:13 Bart Schaefer
2020-12-23 23:04 ` Felipe Contreras [this message]
2020-12-24 19:06 ` Phil Pennock
2020-12-29 17:54 ` Felipe Contreras
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='CAMP44s1h2=B1N35bpuBXfChnSkErGzCkAoRwZ-g9rBvTf3CKrw@mail.gmail.com' \
--to=felipe.contreras@gmail.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/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).