Sujet : Re: question about linker
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 07. Dec 2024, 16:28:24
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vj1pip$35gdu$1@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
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 07.12.2024 16:19, Janis Papanagnou wrote:
On 07.12.2024 15:57, Bart wrote:
The two examples need to be written like this to be valid:
>
do while (cond) ; while (cond);
do ; while (cond) ; while (cond);
>
So this /is/ two nested loops followed by two consecutive ones. The
difference is that semicolon.
Someone here already called things like that as "condensed" (or some
such), meaning that syntax is strict and has few redundancies; small
changes are meaningful and relevant. (Nothing for sloppy hackers, for
sure.)
[...]
>
Those suggesting that semicolons are unimportant details of syntax in C
are wrong. [...]
I don't recall; who said that?
Ah, wait. - You might again be confusing things...
There was discussion of semicolons being a separator in some languages
and a terminator in other languages. Which is a comparably unimportant
language design choice. - But once you choose one language or another,
you have to strictly follow its chosen syntactical rules, of course.
Do you understand that?
Janis