Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: More rabbit-holes with unset variables
- X-seq: zsh-workers 47684
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: More rabbit-holes with unset variables
- Date: Fri, 27 Nov 2020 18:00:27 -0600
- Archived-at: <https://zsh.org/workers/47684>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-11/CAMP44s1Vb7BLHMaJTVwA%3Dy1X3%2BUuocA3PGCuGVJRDMHAaG7zwg%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=RtSZhPaAQwMEE4v4Up4d7TgUzA0xJQZyEpSrSwryASA=; b=s0HWV7s3AXL3VmpkBsFRY7GVQTJV0gfvDcY7Vb+7TW2t9PWu2JyK4ZiU0kLcJ9xNmC QhK7toiSS2IB5yQSYwmr+Eag1BWMnkbpc4EGFK9uEfUQmgAfUMpXqUtjmOY5ZicPd+lw KrkAPXH0vAHHlXGkF4YaylPe5014lelXqDTy3JTjbCd0Wbvsk4Qb/oB0hLH2eWQyTtvy BJxie0vPcagyE0Zjh5uu4V3o74FNL/rfgasr9+JZm1P6W94++WAG6lNH38WeiXjZy9sz maB7SkBawEUApsrvWh16SthwAkQqkoqEMA8uRCkZ+ZejFRKE/uGuxw0hAJOQj6v0BYV3 xGgQ==
- In-reply-to: <CAH+w=7ZxhRr1TYFe_SuKaT5TKsceh7RDTeQ-hfcZF08ctWeTvg@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=7Zag5MG5D=cRS2UMSsqJ0t=iw5MH9j8=HBO1Q77nbs03w@mail.gmail.com> <20201125131921.vay7h3xk5qn4odgg@chazelas.org> <CAMP44s0-ki=TBzTwnqx10FcTLX4mbphwN88UCx0+h97JTecBWA@mail.gmail.com> <CAH+w=7bs9E7whJLugMLOXG05R-2S8Hjt+OOKK_KN+SMxv-Vvaw@mail.gmail.com> <CAMP44s2Ge-pOn1-gEXkq=oJX7ohL-b_20s9mJZAo1LB=ow+Duw@mail.gmail.com> <CAH+w=7bHCrpwbkZBOgwjwF7M9uo+1_ZEa53hxSwE2fuuBuQfyw@mail.gmail.com> <CAMP44s0WSt_J7TjyPEKvH9TxzWBvTVFTB-pK26G+9SacYeQrAw@mail.gmail.com> <CAH+w=7YtBvrpuXUM=MuHVRuBjf8uiRozKLJsHvYXJr9Cx=J-rQ@mail.gmail.com> <CAMP44s3s0dXtirZhi5e_Tir+3KKn2Kw4hseEj0uH12a7HB5Y=Q@mail.gmail.com> <CAH+w=7ZVthOMB=jJ+KkU1WipL2mbCgD69HfUtxGnu6Mbx1rOog@mail.gmail.com> <CAMP44s2ZJg75KEh+vL+EUOgJUF+oB6TLn5-1h55ktcKR67ZeJg@mail.gmail.com> <CAH+w=7arBoRxmFRH7wL_Sh-0tRe1Xyo_GKze+jkSdvYep7NMWg@mail.gmail.com> <CAMP44s1i6uC72LhqGmt_hg-YUoFtJTKcC6o2qTGLHZJ3tB56CA@mail.gmail.com> <CAH+w=7ZxhRr1TYFe_SuKaT5TKsceh7RDTeQ-hfcZF08ctWeTvg@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
On Fri, Nov 27, 2020 at 4:39 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Fri, Nov 27, 2020 at 2:10 PM Felipe Contreras
> <felipe.contreras@xxxxxxxxx> wrote:
> >
> > So we can interpret what you said as 'so the only useful "declared but
> > not set" variable is a string' without losing any meaning.
>
> That's not correct, but again I was hoping it wasn't necessary to
> spell all this out.
>
> All of the following create parameters representing strings, none of
> which are useful unless they either have a default or the "preserve
> when not set" behavior applies:
These are not contradictory unless you commit the fallacy of the converse.
"All animals that bark are mammals" doesn't mean "all mammals bark".
Analogously:
"All unset variables that are useful are strings" doesn't mean "all
strings are unset variables that are useful".
To be pedantic: param_is_useful_unset(p) -> param_type_is_string(p).
Not the other way around.
This is a bit tautological, because if the variable is unset, it can't
be anything else but a string: param_is_unset(p) ->
param_type_is_string(p).
Cheers.
--
Felipe Contreras
Messages sorted by:
Reverse Date,
Date,
Thread,
Author