Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Kaz Kylheku <643-408-1753@kylheku.com> Newsgroups: comp.lang.c Subject: Re: Loops (was Re: do { quit; } else { }) Date: Wed, 16 Apr 2025 18:43:53 -0000 (UTC) Organization: A noiseless patient Spider Lines: 24 Message-ID: <20250416114333.706@kylheku.com> References: <20250413072027.219@kylheku.com> <20250415053852.166@kylheku.com> <20250415201754.605@kylheku.com> <87h62o2296.fsf@nosuchdomain.example.com> <20250416100013.700@kylheku.com> Injection-Date: Wed, 16 Apr 2025 20:43:53 +0200 (CEST) Injection-Info: dont-email.me; posting-host="43d283a6790c1e441f00fcbbbcc44cba"; logging-data="2978999"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JqWu94CCIZBOdsgIRPXPBZYWq70Q6jPg=" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:jcyzx4Y0N1DyFk/xBQje729yPhU= On 2025-04-16, Kaz Kylheku <643-408-1753@kylheku.com> wrote: > On 2025-04-16, Keith Thompson wrote: >> Kaz Kylheku <643-408-1753@kylheku.com> writes: >>> On 2025-04-16, James Kuyper wrote: >> [...] >>>> The key to using the for() statement is to make sure the three >>>> expressions are related appropriately. >>> >>> The observation is valid that the three expressions often fall into a >>> pattern by which they can be condensed. >>> >>> for (var = from; var < to; var++) >>> >>> can be expressed by a construct which mentions var ony once, >>> and omits the operators. >>> >>> You can obtain this with the preprocessor and be reasonably happy. >> >> Sure, you *can*, but I wouldn't. > > But then you would complain about the unpreprocessed version > being verbose, because it becomes a choice at that point. s/would/woudln't/