Deutsch English Français Italiano |
<v3lb0u$2452$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c Subject: Re: C23 thoughts and opinions Date: Mon, 3 Jun 2024 14:02:21 -0700 Organization: A noiseless patient Spider Lines: 21 Message-ID: <v3lb0u$2452$1@dont-email.me> References: <v2l828$18v7f$1@dont-email.me> <v2o57g$1t5p4$1@raubtier-asyl.eternal-september.org> <v3dkgh$2e0me$1@dont-email.me> <v3gou9$36n61$3@dont-email.me> <v3hrq7$1o743$1@news.xmission.com> <v3i7u3$3bp0v$1@dont-email.me> <20240602124448.704@kylheku.com> <864ja9ojit.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 03 Jun 2024 23:02:22 +0200 (CEST) Injection-Info: dont-email.me; posting-host="969ea982a6f3853589d236756461ca4b"; logging-data="69794"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DNodXKjb8DnR7MEUaOdDuRMV7lyJS7Bc=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:N/hbD0gO7inATcdnQu1vwXFTOF0= Content-Language: en-US In-Reply-To: <864ja9ojit.fsf@linuxsc.com> Bytes: 1986 On 6/3/2024 1:31 PM, Tim Rentsch wrote: > Kaz Kylheku <643-408-1753@kylheku.com> writes: > >> On 2024-06-02, Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote: >> >>> I've always considered >>> for (;;) >>> preferable over >>> while (1) >> >> Of course it is preferable. The idiom constitutes the language's direct >> support for unconditional looping, not requiring that to be requested by >> an extraneous always-true expression. >> >> Using while (1) or while (true) is like i = i + 1 instead >> of ++i, or while (*dst++ = *src++); instead of strcpy. [...] > > Using for (;;) for an infinite loop is an abomination. Anyone > who advocates following that rule is an instrument of Satan. Better than goto? ;^D