Article View: comp.lang.c
Article #1477Re: new neat syntax discovered for
From: fir
Date: Wed, 11 Nov 2026 22:28
Date: Wed, 11 Nov 2026 22:28
48 lines
2580 bytes
2580 bytes
Lawrence D’Oliveiro pisze:
> On Wed, 11 Nov 2026 12:45:33 -0800, Ross Finlayson wrote:
>
>> 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,
>> ....
>
> Python is an actual widely-available language that offers most of
> these exotic features anyway, but in an easier-to-digest form.
>
> E.g. overloading multiplication to do replication of sequence types:
>
> >>> ['hi'] * 3
> ['hi', 'hi', 'hi']
> >>> 'hi' * 3
> 'hihihi'
> >>> ['hi', 'there'] * 3
> ['hi', 'there', 'hi', 'there', 'hi', 'there']
>
> Or how about “list comprehensions”:
>
> >>> list(i * i for i in range(10))
> [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
>
here that would be
^i=10 {i*i} //clasical loop
such C is shorter than in python then
or
'10 * '10 // inner streams
streams look stupid here maybe and im not sure if it means something
wrong with them or just it shows its better write
{i='10; i*i;}
maybe this external/outside form is better? those yet are details to
establish or fix
Technical Details
Message-ID:
<11d2q84$3euvl$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:
<11cv6t1$2694b$1@dont-email.me> <qTKdndcN67VCTmn3nZ2dnZfqn_GdnZ2d@giganews.com> <11d2ors$3e1fm$4@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: new neat syntax discovered for Date: Wed, 11 Nov 2026 23:28:59 +0100 Organization: A noiseless patient Spider Lines: 48 Message-ID: <11d2q84$3euvl$1@dont-email.me> References: <11cv6t1$2694b$1@dont-email.me> <qTKdndcN67VCTmn3nZ2dnZfqn_GdnZ2d@giganews.com> <11d2ors$3e1fm$4@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 11 Nov 2026 22:29:24 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3636213"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19c1mRHaKLAJx3MyX3UnY14s5byPT1IT+8="; posting-host="fd0bc059d4f5217504b01a2a82a591ba" 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:xWSeiNzjxpEbFhdDVOfvnC9sVMc= sha256:CjjqxqsayECqc6HMF5cNGwWaTFCCoQVrMB7UDwkJ0tQ= sha1:DcVtIXZZdNSzAcUfe8CaKeXEohU= sha256:rireuzKUgUNFI0Nwt+DGAIMegSbzmQVBtuOHuXv2Ngw= In-Reply-To: <11d2ors$3e1fm$4@dont-email.me>