Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Unset and $empty[(i)] and $empty[(I)] -- worth the effort?
- X-seq: zsh-workers 47756
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Unset and $empty[(i)] and $empty[(I)] -- worth the effort?
- Date: Wed, 23 Dec 2020 17:04:09 -0600
- Archived-at: <https://zsh.org/workers/47756>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-12/CAMP44s1h2%3DB1N35bpuBXfChnSkErGzCkAoRwZ-g9rBvTf3CKrw%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-wr1-f53.google.com) smtp.remote-ip=209.85.221.53; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yOe56OpxYd/TYc8FMp837j1XvWv/fMg1oEJrjrgFg5Y=; b=WMUVRx56yyKqRVEl3l9HHTr2JyG/gu4Umu8Rt7wudaIcFJYDUz0F+IVXqRoga/VjkX hwH5V0yOlCafn2PeQXuRjIjGTcGCJEYaH0eUgqVuvD/8e8x6ah3cVsyewqVY38o2Ea4k 8H9jQP3Yo0F1F7dMJjCSyxBIOp92xRjWvTThYX/UJ4xBQsEjtUtYzEa1hZhOgWgvGBxp 6uVzNmtF6QT4LR6l7La+rNkl49rWmz2ygN7uO4L6uj0EH8nf48+EX2mRXKa1qcMjwggN Ch55Qa20Vm3kNcxeFNfLutUHzWxxoW3YFVeHs8Ywkt8fXc5Neusl327WuirHdO95XbQC +hwg==
- In-reply-to: <CAH+w=7aQNk4g6y2NZC0skZg+1RxKZH5GAXM1Gi6PUYi58Aa27g@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <CAH+w=7aQNk4g6y2NZC0skZg+1RxKZH5GAXM1Gi6PUYi58Aa27g@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
On Mon, Dec 7, 2020 at 5:13 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author