Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou Newsgroups: comp.lang.c Subject: Re: Loops (was Re: do { quit; } else { }) Date: Tue, 15 Apr 2025 09:25:40 +0200 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: <87a58mqt2o.fsf@nosuchdomain.example.com> <20250413072027.219@kylheku.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Tue, 15 Apr 2025 09:25:41 +0200 (CEST) Injection-Info: dont-email.me; posting-host="01e2f8c7bf13ed716fd050663a212937"; logging-data="3377582"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+n3eKy8xHVoDiT3nMFeOjg" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:Bly7Fnsycg/s+as6JLbcLBxJ0Fw= In-Reply-To: X-Enigmail-Draft-Status: N1110 Bytes: 2142 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. 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. Janis