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

Re: uninvited members of associative array



On Fri, Dec 16, 2022 at 08:25:54PM +0000, Daniel Shahaf wrote:
> Yeah, the syntax rules are well-defined, but they aren't always
> intuitive.  I don't know of any other language that does null elision on
> arrays, for instance: in most languages, if you loop over an array that
> contains ('foo' '' 'bar'), you get three iterations.

I'd not exactly call it a "language" but it's mostly the same in
fvwm scripts.  If the last level of quoting around an empty string
goes away, the argument evaporates.  That's because the fvwm
syntax was inspired by shells.

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt




Messages sorted by: Reverse Date, Date, Thread, Author