Sujet : Re: Loops (was Re: do { quit; } else { })
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 22. Apr 2025, 09:19:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vu7je4$6np6$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 22.04.2025 00:54, bart wrote:
On 21/04/2025 22:06, Waldek Hebisch wrote:
[...]
The intent of 'for' is to iterate over some collection. Each of
A, B, C is needed to know the collection.
Sure, but ALL ON THE SAME LINE?
No one suggested (or forces you) to do that.
All within the same parentheses?
It makes sense in programming languages to have a syntactic frame
for things that belong together.
Putting multiple things on the same line is usually frowned upon.
There's of course exceptions but basically yes.
Look at these ludicrous examples:
I suggest to just not make up ludicrous examples. We would certainly
all be happy if you'd stop that.
Janis
[...]