| Deutsch English Français Italiano |
|
<vub1nj$3d9kt$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c
Subject: Re: Loops (was Re: do { quit; } else { })
Date: Wed, 23 Apr 2025 17:41:39 +0200
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <vub1nj$3d9kt$2@dont-email.me>
References: <vspbjh$8dvd$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>
<vtnekn$1fogv$1@dont-email.me> <vto2mb$20c4n$1@dont-email.me>
<vtu4i5$3hteg$1@dont-email.me> <vtujko$3uida$1@dont-email.me>
<vtvfop$rf2p$1@dont-email.me> <vtvto2$15otp$1@dont-email.me>
<vu01k7$1bfv2$1@dont-email.me> <vu0720$1dva7$1@dont-email.me>
<vu2hmg$3jn88$1@dont-email.me> <vu2mkc$3noft$1@dont-email.me>
<vu5ig6$3catv$1@paganini.bofh.team> <vu5ol1$2h3r8$1@dont-email.me>
<vu7hvu$5cl0$1@dont-email.me> <vu8mde$14j63$1@dont-email.me>
<vu8ok8$15ph8$1@dont-email.me> <vu8plq$17geo$1@dont-email.me>
<vu8rhf$18fhc$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 23 Apr 2025 17:41:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9c60b54993b1503c0c34a5be768da3e9";
logging-data="3581597"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1989XPJKC7MiH9LW0VhTYiMkV/gMo8Mqak="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:zl1sP1uJtlTQS6XYKq60Zsth5jw=
Content-Language: en-GB
In-Reply-To: <vu8rhf$18fhc$1@dont-email.me>
On 22/04/2025 21:43, bart wrote:
> On 22/04/2025 20:11, David Brown wrote:
>> On 22/04/2025 20:54, bart wrote:
>
>>> Well C's would be:
>>>
>>> For (first ingredient; ingredient; next ingredient)
>>
>> The point was that you claimed your loop matches how you would
>> describe things in English.
>
> And it does exactly that. I get why people decide to go up several
> levels to try score some points, but we're not talking about AI here
> where we are trying to extract the exact algorithm that might have been
> in the mind of the programmer.
>
I think it was Djikstra who said that one of the most important skills
for a programmer is a mastery of your mother tongue. You seem to be
failing here.
No one is doubting your ability to translate some code directly into
English words. What you are failing to do, however, is write a
sensible, normal English language description of the task for the code,
and then translate that into code. You can't expect people to take you
seriously when you say a C for-loop does not match a normal English
description when your own looping alternatives are equally bad matches.
Let me put it simply for you:
It is true that no one uses C for-loops in normal English.
It is equally true that no one uses while-loops in normal English.