Sujet : Re: Loops (was Re: do { quit; } else { })
De : Ros (at) *nospam* invalid.invalid (Rosario19)
Groupes : comp.lang.cDate : 16. Apr 2025, 10:45:24
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <opuuvj5quo2ggp4g27rfl9os8bh3mn7rp8@4ax.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Forte Free Agent 1.93/32.576 English (American)
On Tue, 15 Apr 2025 09:25:40 +0200, Janis Papanagnou wrote:
On 15.04.2025 06:57, Rosario19 wrote:
On 13.04.2025 18:39, bart wrote:
[...]
>
for(let i = 1; i <= 36; i++) {
C for loop is great, but all can be workarounded with goto label
>
Sure. Or all done with Turing machines. - But why would one want to.
because one not has the for loop, because is need more flexibility in
what code has to make, because one find so easy goto label, that it is
easier of the loop for, even if i think in 80% of cases for loop is
less chars and easier of the loop that use goto label
Maybe a note aside on your comment; I haven't read many specification
documents of contemporary language lately, but many of those old specs
often described the semantics of high-level constructs (like loops) by
an equivalent 'goto' based code pattern.
yes low level is goto label
Janis