| Deutsch English Français Italiano |
|
<86sel7ukr4.fsf@linuxsc.com> 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: Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups: comp.lang.c
Subject: Re: Loops (was Re: do { quit; } else { })
Date: Wed, 14 May 2025 11:09:51 -0700
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <86sel7ukr4.fsf@linuxsc.com>
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> <20250415153419.00004cf7@yahoo.com> <86h62078i8.fsf@linuxsc.com> <20250504180833.00000906@yahoo.com> <86plggzilx.fsf@linuxsc.com> <20250511010917.00007702@yahoo.com> <86h61qzn55.fsf@linuxsc.com> <20250512161819.000023d6@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Wed, 14 May 2025 20:09:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="adcc0210618ce5c814d2d263cc71a7bf";
logging-data="2774377"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Gu4SXg4o+afx6jGSdNrjKHQcdORF9ypo="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:qvKONiPRYMel96IGF0AdFcF/gDA=
sha1:H0M54pv3FU/Ef/XIrdo0I2IYi0o=
Bytes: 3052
Michael S <already5chosen@yahoo.com> writes:
(I am summarizing heavily in an effort to return to the main area
of interest.)
> On Sun, 11 May 2025 17:30:14 -0700
> Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:
>
>> Michael S <already5chosen@yahoo.com> writes:
[...]
>>> [suggestion to keep for() and eliminate while()]
>>
>> [a mention was made of statistics given in another posting
>> that reported a ratio of while()/for() of roughly 2.3 to 1.]
>>
>>>>>> [upthread there was a different posting, from Richard
>>>>>> Heathfield, that gave statistics reflecting a ratio
>>>>>> of for()/while() of approximately 3 to 1, IIRC]
I did a more comprehensive gathering of statistics, using an ad hoc
collection of 68 open source projects, ranging in size from just
over 1500 lines to over a million lines, including two outliers
with 20 million lines and 75 million lines. The ratio of while()
to do/while() ranged from 12.5% to 2100%, with an average of
573.9%. The ratio of while() to for() ranged from 1.6% to 300%,
with an average of 60.8%.
> [...] while() does not help anything relatively to for().
I understand that that is your view. I don't remember seeing any
supporting statements other than your personal reactions. My own
experience is different. Judging by the open source statistics
reported above, it appears that a fair number of other developers
don't share your views on this question either.