Sujet : Re: Python (was Re: I did not inhale)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.miscDate : 31. Aug 2024, 01:00:17
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vatmeh$mhl0$4@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
User-Agent : Pan/0.160 (Toresk; )
On Fri, 30 Aug 2024 15:55:36 +0100, Bart wrote:
There's lot of things that language syntax might not need. For example,
I could dispense with the closing parentheses here:
x = (a + (b + (c + d
as they can supplied as needed at end-of-line.
Then you can’t continue an expression across multiple lines.
There was one language vaguely I recall (might have been a Lisp dialect)
where a single “]” would be interpreted as closing all currently-unmatched
“(”. Scheme, I believe, realizes that long lines of “))))” just make the
(human) reader’s eyes glaze over, so they allow “[” and “]” with the same
meanings as “(” and “)”, but you must pair like with like. As if “)])]” is
much of an improvement.
People can, and do, experiment with many different ideas in programming
languages.