Deutsch   English   Français   Italiano  
<20250414153314.00002c1a@yahoo.com>

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: Michael S <already5chosen@yahoo.com>
Newsgroups: comp.lang.c
Subject: Re: Loops (was Re: do { quit; } else { })
Date: Mon, 14 Apr 2025 15:33:14 +0300
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <20250414153314.00002c1a@yahoo.com>
References: <vspbjh$8dvd$1@dont-email.me>
	<vt5fed$ccri$1@dont-email.me>
	<vt5js2$g1t7$1@dont-email.me>
	<20250409142303.00004645@yahoo.com>
	<87ikndqabc.fsf@nosuchdomain.example.com>
	<20250410115501.000037a5@yahoo.com>
	<vt8ei8$2vn84$1@dont-email.me>
	<20250410080629.532@kylheku.com>
	<vt94q5$3jjod$1@dont-email.me>
	<vt9628$3hhr8$3@dont-email.me>
	<vtammh$174ev$1@dont-email.me>
	<vtavn9$1dp7m$3@dont-email.me>
	<vtb8nv$1plb2$2@dont-email.me>
	<vtba81$1qfbm$1@dont-email.me>
	<vtbc6o$1te2o$1@dont-email.me>
	<vtbhjv$24api$1@dont-email.me>
	<vtbn2k$293r1$1@dont-email.me>
	<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>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 14 Apr 2025 14:33:16 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e45c168c61dc19ae69e88a9e7eef61f1";
	logging-data="1002308"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/oP42uZms6KNpjtF77fplOBmuUtShZUVM="
Cancel-Lock: sha1:7ys0iLNEc21d6yBLdGSWY+o2QDs=
X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
Bytes: 3252

On Mon, 14 Apr 2025 14:18:39 +0200
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:

> (While there's some "C" stuff in here it contains a lot of non-"C"
> samples for comparison. So [OT]-sensible folks may want to skip this
> post.)
> 
> On 14.04.2025 12:16, bart wrote:
> > On 14/04/2025 05:23, Janis Papanagnou wrote:  
> >> On 13.04.2025 18:39, bart wrote:  
> >>> [...]
> >>>
> >>>    for(let i = 1; i <= 36; i++) {
> >>>
> >>> Is it that hard to provide a proper for-loop where you don't have
> >>> to spell out every single detail?  
> >>
> >> You mean like in Algol 68 or maybe Simula? (Both are interesting.)
> >>  
> > 
> > I mean like pretty much every language that hasn't copied C's
> > for-loop syntax. For example Lua:
> > 
> >    for i = a, b                  # iterate over a..b inclusive
> >      s1
> >      s2
> >      ...
> >    end  
> 
> Obviously there are many and there were many programming languages
> that have other and better loop syntaxes than Fortran or Lua (if
> above code is all that it provides).
> 

Modern Fortran do construct does not lack in features.
There are languages that match it, but it's hard to see how one can
improve on it without impacting one or another usability aspects.