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

Re: Another push on declarednull branch



On Mon, Dec 28, 2020 at 12:23 PM Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:
>
> On Sun, Dec 27, 2020 at 5:05 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > Alternate names for PM_DECLARED would be welcome.  If I could turn
> > back time, I might use PM_NOTSET, and then PM_NULL ==
> > (PM_NOTSET|PM_UNSET).
>
> However, I'm still not sure if those values make sense.
>
>   typeset var
>   unset var
>
> In this case PM_UNSET is true, but PM_NOTSET is false. Why? No value
> was ever assigned.

Would it make more sense as PM_IMPLICIT, so PM_NULL = (PM_IMPLICIT|PM_UNSET)?

Naming is often a hard problem.  Speaking of which:

> It's Felipe BTW.

Apologies.  As someone who is often Burt/Bert/Bret/Brat, I know the annoyance.




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