bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/3] Introduce $(compare ...) for numerical comparison


From: Paul Smith
Subject: Re: [PATCH 3/3] Introduce $(compare ...) for numerical comparison
Date: Mon, 08 Nov 2021 10:08:26 -0500
User-agent: Evolution 3.36.5-0ubuntu1

On Fri, 2021-07-16 at 14:04 +0200, Jouke Witteveen wrote:
> +@item $(compare 
> @var{lhs},@var{rhs},@var{lt-part}[,@var{eq-part}[,@var{gt-part}]])

Let me ask this: would it be better to use a format of:

  $(compare <lhs>, <rhs>, <eq>[, <lt>[, <gt>]])

Then the rule is, if the values are equal we get the <eq> part, if lhs
is less than rhs we get <lt>, and if lhs is greater than rhs we get
<gt>.

If <gt> is not present then the invocation devolves to:

  $(compare <lhs>, <rhs>, <eq>, <!eq>)

that is, the fourth arg is used for not equal.

If <lt> is also not present then <eq> is used if the value is equal
else it expands to the empty string.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]