Article View: comp.lang.c
Article #1478Re: new neat syntax discovered for
From: fir
Date: Wed, 11 Nov 2026 22:35
Date: Wed, 11 Nov 2026 22:35
55 lines
2950 bytes
2950 bytes
fir pisze:
> 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
>
>
>
>
this one feels very ^i=10 {i*i} classical thus is kinda safe
this what ia call inner streams a='i*b much less clasical thus
not so safe but there is hope it can have some more possibilities tan
classical old ^i=10 {i*i}
Technical Details
Message-ID:
<11d2ql3$3f4pd$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> <11d2q84$3euvl$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: new neat syntax discovered for Date: Wed, 11 Nov 2026 23:35:53 +0100 Organization: A noiseless patient Spider Lines: 55 Message-ID: <11d2ql3$3f4pd$1@dont-email.me> References: <11cv6t1$2694b$1@dont-email.me> <qTKdndcN67VCTmn3nZ2dnZfqn_GdnZ2d@giganews.com> <11d2ors$3e1fm$4@dont-email.me> <11d2q84$3euvl$1@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:36:20 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3642157"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BZeDPfo650SYbvJZEgDRLUn6XXzuaapk="; 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:gqiTTZUTS7fw8X9yrAe0uOjXC/M= sha256:CsJ9wdUzAYCI4+FGEE41S5MmgMvgQCji49UWW/s1EEQ= sha1:1a1rSseq/FYq8fadksIj80tdq6Y= sha256:3vInnr5wfJbBrItzAYa5o8gxq7GCFsqu0z09AL81aGo= In-Reply-To: <11d2q84$3euvl$1@dont-email.me>