Sujet : Re: "A diagram of C23 basic types"
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 08. Apr 2025, 03:36:33
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vt223g$15gkb$4@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Pan/0.162 (Pokrosvk)
On Fri, 4 Apr 2025 03:05:23 -0000 (UTC), Waldek Hebisch wrote:
There is quite a lot of programming languages that have whitespace
separated lists. Most of them have "Algol like" syntax.
POP-2 or POP-11, from what I recall:
[a b c]
is a list literal, while
[% "a", "b", "c" %]
is a list expression.
PostScript:
[2 2 add dup 8 mul dup 2 div]
is a long-winded way of writing
[4 32 16.0]
In Lisp, whether an S-expression is meant to be taken literally or now
comes down to a single quote mark:
'(+ 2 2)
is the literal list “(+ 2 2)”, while
(+ 2 2)
is 4.
Which of these would you consider to have “Algol like” syntax? Only the
first one.