Article View: comp.lang.c
Article #1398Re: p = {1,0,0}
From: fir
Date: Mon, 09 Nov 2026 22:56
Date: Mon, 09 Nov 2026 22:56
95 lines
4806 bytes
4806 bytes
fir pisze:
> 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}
>
sorry i wrote i ^ 100 here my reader puts superscript here
if i would sue superscript then i would probably superscriopt whole
"100i" like {}"100i" not saying its a good idea ..though sometimes it
seems interesting like tab[i++]^100 = 0 or matbe tab[i++]^100 =
tab2[k--]^100 (it would be copying with reversing
overally this analogy using power as analogy fo r loop seems interesting
> 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:
<11ctj47$1mfut$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-mailReferences:
<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> <11ctijh$1mb1u$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:56:52 +0100
Organization: A noiseless patient Spider
Lines: 95
Message-ID: <11ctj47$1mfut$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>
<11ctijh$1mb1u$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:57:12 +0000 (UTC)
Injection-Info: dont-email.me;
logging-data="1785821"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188TtVtINiz+6OvH/V8coqQOudK9BDzaP0="; 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:NQFTj11dMMFSFJ6Mp3ZO3Tw0/NQ= sha256:NPgqnruVtZ17FTTTlZ++HsPRA773V8v0eh/cCwqHnQ0=
sha1:yaXUlbuGxdPzeymN9eh6bc+sSnA= sha256:ZH3ychSEWIcA5YpCdfLFNUJeeUqPYtMRb3ga4Rs9Ti4=
In-Reply-To: <11ctijh$1mb1u$1@dont-email.me>