🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1466

Re: new neat for syntax discovered

#1466
From: Ross Finlayson
Date: Wed, 11 Nov 2026 20:45
77 lines
2937 bytes
On 11/10/2026 05:40 AM, fir wrote:
> "10.11.26 new for syntax discovered"
>
> (i will post it here yet, as a kinda tutorial becouse before it was
> essily written)
>
> new for is ^
>
> ^ {}
>
> this makes infinite loop
>
> iuo want loop 1000 times
>
> {} ^ 1000
>
>
> (this rightside form is more natural bu some leftside must be taken
> (for now maybe
>
> ^ 1000 {}
>
> though it may chnge maybe)
>
> wnnna iterate for i?
>
> int i = width;
> int j = height;
>
> ^ j ^ i {tab[j][i]=0;}
>
> some could say there should be a shortcut
>
> dst[^j][^i]=source[j*1.2][i*1.2];
>
>
> but there is a question when ^T ^S should work in "parraler"
> and when like tensor (?) way (you know all pairs fired)
>
>
>
> probably some syntax need to be extablished like
>
>
> dst[^^j][^i]=source[j*1.2][i*1.2];
>
> ^^J being second grade loop and all irst grade should go in
> parallel/synchronised
>
>
>
>
>
>
>
>
>
>
>
>


Perhaps you'd rather explore "array languages" like "APL"
or a variety of modern ones, they really take the syntax
to the extreme for the minimalist.

Unfortunately most of their characters don't exist on a keyboard, ....

Adding constructs to the language results potentially very much
changing the requirements of all the tooling about the syntax
and keeping the un-ambiguity about accounts of strengths of grammars.

The "for" is already "sugar", one might figure more for
"since" and "until", about expressitivity, those also
being "sugar", yet about the negatory.

Technical Details
Message-ID: <qTKdndcN67VCTmn3nZ2dnZfqn_GdnZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.nrbbs.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <11cv6t1$2694b$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.nrbbs.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 11 Nov 2026 20:45:19 +0000
Subject: Re: new neat for syntax discovered
Newsgroups: comp.lang.c
References: <11cv6t1$2694b$1@dont-email.me>
From: Ross Finlayson <ross.a.finlayson@gmail.com>
Date: Wed, 11 Nov 2026 12:45:33 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <11cv6t1$2694b$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <qTKdndcN67VCTmn3nZ2dnZfqn_GdnZ2d@giganews.com>
Lines: 77
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-fLgpdGx8uEHqLGPyCrY3ZkpJ+ddm7y6JRsV1iwXgYM/vsFqB6O6kXfSN+9QdUuX0Jn9K1VS4SXSxwPy!KN+TH/kBeqwpU+yztO2dR/fi2GpPDuOkxKuxvIYNPv2c17yq6zbVfv8zmVbdEVqZOoYLd/++IyL4
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40