Sujet : Re: do { quit; } else { }
De : bc (at) *nospam* freeuk.com (bart)
Groupes : comp.lang.cDate : 15. Apr 2025, 17:38:40
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vtm22f$42jp$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Mozilla Thunderbird
On 15/04/2025 16:31, Scott Lurndal wrote:
bart <bc@freeuk.com> writes:
On 15/04/2025 15:05, Scott Lurndal wrote:
>
>
What about this one:
>
for(i = 0; j < N; k++)
Any fool can write bad code in any language, including yours.
It is impossible to write such a *FOR* loop in any language that actually implements it properly.
C's 'FOR' loop is misnomer for a weird feature that is like 'while' but with three components. A feature where there is virtually no checking so that it can comprise any kind of nonsense.
It doesn't have a dedicated feature for iterating a variable over a range.