[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New conditional assignment facility
From: |
Dmitry Goncharov |
Subject: |
Re: New conditional assignment facility |
Date: |
Sun, 21 Jan 2024 14:22:43 -0500 |
On Sun, Jan 21, 2024 at 11:17 AM Paul Smith <psmith@gnu.org> wrote:
> I think you wrote that wrong: I think you mean "otherwise +:= behaves
> the same as +="... ?
You are right.
Let us clarify the goal of these enhancements?
i assumed that the goal of these enhancements was to allow code like
hello+:=$(world)
create 'hello' as a simple variable, if 'hello' does not exist yet.
After reading your != example, i realize i misunderstood the meaning
of option one.
Let me correct myself.
If the only goal was to allow +:= create a simple variable, then can
we do the following?
"If no variable with this name exists, then +:= creates a simple
variable, and +:::= creates an immediately-expanded-and-escaped
variable. Otherwise, +:= and +:::= behave the same as +=".
If we go with this, then there is no need for +!=, because +!= would
behave as +=. Similarly, there is no need for +::=, because +::= would
behave as +:=.
regards, Dmitry
- New conditional assignment facility, Paul Smith, 2024/01/11
- Re: New conditional assignment facility, N. Thiebaud, 2024/01/11
- Re: New conditional assignment facility, Paul Smith, 2024/01/11
- Re: New conditional assignment facility, Dmitry Goncharov, 2024/01/20
- Re: New conditional assignment facility, Paul Smith, 2024/01/21
- Re: New conditional assignment facility,
Dmitry Goncharov <=
- Re: New conditional assignment facility, Paul Smith, 2024/01/22
- Re: New conditional assignment facility, Jouke Witteveen, 2024/01/22
- Re: New conditional assignment facility, Martin Dorey, 2024/01/22
- Re: New conditional assignment facility, Jouke Witteveen, 2024/01/22
- Re: New conditional assignment facility, Dmitry Goncharov, 2024/01/22
- New append operators (was: Re: New conditional assignment facility), Paul Smith, 2024/01/28
- Re: New conditional assignment facility, Paul Smith, 2024/01/27
- RE: New conditional assignm ent facility, rsbecker, 2024/01/27
- Re: New conditional assignm ent facility, Paul Smith, 2024/01/27
- RE: New conditional assignm ent facility, rsbecker, 2024/01/27