Deutsch   English   Français   Italiano  
<vtth94$31ec8$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!eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.lang.c
Subject: Re: Loops (was Re: do { quit; } else { })
Date: Fri, 18 Apr 2025 14:41:02 +0200
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <vtth94$31ec8$1@dont-email.me>
References: <vspbjh$8dvd$1@dont-email.me> <vtc7mp$2q5hr$1@dont-email.me>
 <vtcqf6$3j95s$1@dont-email.me> <vtdh4q$b3kt$1@dont-email.me>
 <vtf7fe$1qtpg$1@dont-email.me> <vtgfuf$31ug1$1@dont-email.me>
 <20250413072027.219@kylheku.com> <vtgpce$39229$1@dont-email.me>
 <vti2ki$g23v$1@dont-email.me> <vtin99$vu24$1@dont-email.me>
 <vtiuf0$18au8$1@dont-email.me> <vtj97r$1i3v3$1@dont-email.me>
 <vtl166$36p6b$1@dont-email.me> <vtlcg0$3f46a$2@dont-email.me>
 <20250415053852.166@kylheku.com> <vtm4ae$6d5j$1@dont-email.me>
 <H7yLP.2056536$OrR5.1414451@fx18.iad> <vtmgj8$g81k$1@dont-email.me>
 <vtnfjj$1gk91$1@dont-email.me> <vto4fu$23kmr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 18 Apr 2025 14:41:09 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c55b9a179476600c1217153e209af338";
	logging-data="3193224"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+UHV8r1+ZRPkIsg07WP2Q2"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
Cancel-Lock: sha1:DfxWURYSqYKGEmh2cOZbKPQHsA0=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <vto4fu$23kmr$1@dont-email.me>
Bytes: 3711

On 16.04.2025 13:32, bart wrote:
> On 16/04/2025 06:35, Janis Papanagnou wrote:
>> On 15.04.2025 22:46, bart wrote:
>>> On 15/04/2025 20:07, Scott Lurndal wrote:
>>>> [...]
>>>> Real for loops _are_ a three-way construct.
>>>> [...]
>>>
>>> Any step other than 1 is unusual. [...]
> 
>> Nonsense. Arithmetic loop steps other than one are noting unusual
>> and been supported by programming languages (and also been used)
>> since decades in programming.
> 
> So what are you claiming, that the majority of loops in any given
> program will have steps other than +1 or -1?

No. I am saying that there's many ways to define and use 'for' loops,
and specifically "C" allows (by using an inherent primitive syntax)
to formulate many useful constructs that are also used regularly in
those languages that support such constructs.

As an implied consequence of that you may derive that if you use only
languages that don't support such constructs you must emulate them in
other ways in those languages. (This will naturally not be directly
countable in your preferred statistics.)

Also if you are using a language with more flexible 'for' loops but
you are not using that flexibility - because you haven't learned it,
you just don't grok it, or deliberately abstain from it because, say,
of some dogma that 'for' loops are only "real" 'for' loops if you use
them just in sequential traversing of integers with increments of 1 -
that you will also not see them.

> [...]
> 
> But never, mind, C's for-loop will still be the most superior to
> everybody here.

(I cannot speak for "everybody" as you seem to prefer.)

My own opinion I already stated more than one time; it boils down to:
I dislike "C" syntax in general. I like the flexibility of "C". The
latter is part of the reason why I use that syntactically "inferior"
language in some private programming.

> I'd have an easier time arguing about religion!

(But you are arguing all the time in a religious manner already.)

Janis