Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 1/3] Extended ksh compatibility: namespace parameter syntax
- X-seq: zsh-workers 51506
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH 1/3] Extended ksh compatibility: namespace parameter syntax
- Date: Sun, 5 Mar 2023 13:11:46 -0800
- Archived-at: <https://zsh.org/workers/51506>
- In-reply-to: <CAH+w=7bwYobuJukAYTAxoVGmJcbVMjfrrSc_swzV+0eBprVpzw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7aV2s_+79eCPuavRTiR5wRTwDtTjYxP_VN8HNtL2R5iXw@mail.gmail.com> <26170-1678007435.186071@mDq6.Euc0.bAwZ> <CAKc7PVB=cbu6OBN7GMB31SNzXsMO4V5E+rQifJpg4uvZtUU=WA@mail.gmail.com> <CAH+w=7bwYobuJukAYTAxoVGmJcbVMjfrrSc_swzV+0eBprVpzw@mail.gmail.com>
On Sun, Mar 5, 2023 at 12:20 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sun, Mar 5, 2023 at 1:57 AM Sebastian Gniazdowski
> <sgniazdowski@xxxxxxxxx> wrote:
> >
> > I wonder, how far is this from supporting a nested arrays? Like arr[2][3] or assoc[a][c]?
>
> It's exactly as far as it has always been.
The other unanswered question is, to what does arr[2] expand when
arr[2][3] is also an array? That is, when you have to subscript 3+
times to reach a scalar? There's no convenient text representation of
array-of-array; do we just throw an error if there are too few levels
of dereference?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author