Sujet : Re: Interval Comparisons
De : bc (at) *nospam* freeuk.com (bart)
Groupes : comp.lang.cDate : 05. Jun 2024, 00:22:36
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3o7jr$ki9u$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 05/06/2024 00:12, Lawrence D'Oliveiro wrote:
On Tue, 4 Jun 2024 11:41:54 -0000 (UTC), Blue-Maned_Hawk wrote:
i think that we need not worsen the matter with new ternary operators.
These are not ternary operators.
So what are they?
I've implemented them several times, and found they really need to be treated as a special kind of n-ary opterator.
An AST node for A+B say would have single operator "+", and two operands.
One for "A<=B<=C" would have two operators "<=" and "<", and three operands.