Sujet : Re: Top 10 most common hard skills listed on resumes...
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 08. Sep 2024, 04:44:16
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbj6ii$1q6mh$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 06.09.2024 13:34, Bart wrote:
In more complicated cases in languages, then some asymmetry does come
up. For example, suppose C allowed this (my language allows the
equivalent):
(c ? a : b) = x;
In Algol 68 you can write
IF c THEN a ELSE b FI := x
or, in a shorter form, as
( c | a | b ) := x
if you prefer.
So this assigns to either a or b depending on c. My implementation
effectively turns it into this:
*(c ? &a : &b) = x;
So using explicit references and derefs. However, that is internal. The
symmetry still exists in the syntax:
(c ? a : b) = (c ? a : b);
This is only a "visual" symmetry, not a semantical one.
The LHS of the Algol 68 example is of 'REF' (lvalue) type, as it would
be the case with a language that supports a syntax as you show it here.
I'm not sure if you should adjust your wording (concerning "symmetry")
given that you seem to widely inflict confusion here.
Janis