Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Unset and $empty[(i)] and $empty[(I)] -- worth the effort?



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