Deutsch   English   Français   Italiano  
<vttp8l$38dp9$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!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 16:57:24 +0200
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <vttp8l$38dp9$1@dont-email.me>
References: <vtc19j$2kqlj$1@dont-email.me>
 <87a58mqt2o.fsf@nosuchdomain.example.com> <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> <ilprvj5jbpcbr7fts2kdotfb81763u652g@4ax.com>
 <vtl1ll$372de$1@dont-email.me> <opuuvj5quo2ggp4g27rfl9os8bh3mn7rp8@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 18 Apr 2025 16:57:26 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="be4bca6d06c0bf1c35c499e8d85372b8";
	logging-data="3421993"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18foCYWeaKqarJwOCMIqtGg"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
Cancel-Lock: sha1:D7NIQmZBL7n5+hLgrwaa5JBju+o=
In-Reply-To: <opuuvj5quo2ggp4g27rfl9os8bh3mn7rp8@4ax.com>
X-Enigmail-Draft-Status: N1110
Bytes: 3203

On 16.04.2025 11:45, Rosario19 wrote:
> On Tue, 15 Apr 2025 09:25:40 +0200, Janis Papanagnou wrote:
> 
>> On 15.04.2025 06:57, Rosario19 wrote:
>>>>>> On 13.04.2025 18:39, bart wrote:
>>>>>>> [...]
>>>>>>>
>>>>>>>    for(let i = 1; i <= 36; i++) {
>>>
>>> C for loop is great, but all can be workarounded with goto label
>>
>> Sure. Or all done with Turing machines. - But why would one want to.
> 
> because one not has the for loop, because is need more flexibility in
> what code has to make, because one find so easy goto label, that it is
> easier of the loop for, even if i think in 80% of cases for loop is
> less chars and easier of the loop that use goto label

(Note my question above was rhetorical. - Turing machine programs is
not something you should consider as scale for what we usually do in
programming.)

Of course, if all you have is an assembler language then "all" you
have are jumps. (Note: again an accentuated formulation of the point,
but I'm confident you understand what I'm trying to say.)

If, for common loop conditions, it's easier for someone to use gotos
than to use typical loop constructs then I suggest that this person
should not apply for a programmers' job.

The "number of characters" in a syntactical construct is IMO not the
most relevant or primary factor. But abstractions in languages often
coincide with much terser formulations. And abstractions is what aids
in programming non-trivial systems. I would abstain from gotos, but
because of the "number of characters" to type or to spare.

Janis