πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1397

Re: p = {1,0,0}

#1397
From: fir
Date: Mon, 09 Nov 2026 22:47
84 lines
4184 bytes
yet maybe some thoughts on for loop syntax potential improvements






im really annoyed by long c loops
like for(int i=0; i<100; i++) {}

back hen i miraculously mabe found some good alternative but it needs
unicode

100𝐒 {}  //is alternative for "for(int i=0; i<100; i++) {}"

it needs unicode becouse you will need tu use varable here
and if you use variable then normal i would be part of name of the variable

width𝐒 {} //bold or cursive (italics) for indexes

eventualy some culd use greek letters etc

Aψ tab[ψ]=9

(eventually though amybe less likely Aψ: tab[ψ]=9  )

lookin good but may have some drawbacks like its quite strong decision


overally i thinked what WOULD look the natural form of loop in c

in my mind appeared today some:


if f() is a function call then

f();f();f();f();f();f();f();f();

resembles loop thus

f()^10 may be understand as a kinda "natural" form of loop

so

int i =0; {a[i++]==0? break} ^ strlen(a);

might be seen as kinda natural
(probably thought here strlen would be called many tiles so maybe

int LEN = strlen(a);
int i =0; {a[i++]==0? break} ^ LEN;

its not bad still its a bit long, has no shorter form and also
there is a problem power has no leftsde form like 2^10 has not a form
"10th power of 2" though maybe some could vrite ^10 {2}

so some shortcut form i could consider

i^100 {tab[i]=0}

its not quite as natural as  {tab[i++]=0}^100 but maybe its standable as 
its based on idea of power and adds some to it

i even noticed this sole sign "^" could be read as "for"

i^100 would mean power given block  100 times and i treat as a number of 
this powering

i^10..99 { tab[i] = 0; }

( or { tab[i] = 0; } i^10..99 )



would then mean for i from 10 to 99 (inclusively)

im not sure if this is enough good but those  two syntaxes
(one using this unicode indexes in minimal form) and this based on
ascii is what i'm about currently

some could be worried that now this i as index is not an "int i"
only enigmatic i - but im not sure if such special thing as index of the 
loop (which is kinda low level thing should be necessary a clasical int 
i..maybe it shouldnt?
Technical Details
Message-ID: <11ctijh$1mb1u$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me> <11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me> <11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me> <11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me> <11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me> <11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me> <11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me> <11cnve1$3ofei$1@dont-email.me> <11co8d4$3rpvm$1@dont-email.me> <14be9ea5-918f-5871-1bba-11e29e6e25d5@gmail.com> <11coqot$1236$1@dont-email.me> <11cplsf$8nc4$1@dont-email.me> <11cpnbb$97kp$1@dont-email.me> <11cpo21$9fji$1@dont-email.me> <11cpov5$9q2h$1@dont-email.me> <11cq3hb$dnf9$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: fir <profesor.fir@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: p = {1,0,0}
Date: Mon, 9 Nov 2026 23:47:59 +0100
Organization: A noiseless patient Spider
Lines: 84
Message-ID: <11ctijh$1mb1u$1@dont-email.me>
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me>
 <11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me>
 <11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me>
 <11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me>
 <11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me>
 <11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me>
 <11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me>
 <11cnve1$3ofei$1@dont-email.me> <11co8d4$3rpvm$1@dont-email.me>
 <14be9ea5-918f-5871-1bba-11e29e6e25d5@gmail.com>
 <11coqot$1236$1@dont-email.me> <11cplsf$8nc4$1@dont-email.me>
 <11cpnbb$97kp$1@dont-email.me> <11cpo21$9fji$1@dont-email.me>
 <11cpov5$9q2h$1@dont-email.me> <11cq3hb$dnf9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 09 Nov 2026 22:48:18 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1780798"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX181ppl9Y/Wu6Uf8ZTJ8NgYdgZWsDBayOsc="; posting-host="b0a39366021003379c5af164059decff"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
 Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:Y4hLSVNJ0tqZsFPRhBIE+6QYmdU= sha256:TG9aK8Xsq6r7mN1bfMhBiNJH+m4QthJPScS8nz/P+qg=
	sha1:9j3gmmNQiF0+Z3H9moJW+L6Bzow= sha256:CU9YJcKoRis1ugFWEJTyZN3VTQI6mSdIKCDuLZmSeMk=
In-Reply-To: <11cq3hb$dnf9$1@dont-email.me>