🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1475

Re: new neat syntax discovered for

#1475
From: Lawrence D’Oliveiro
Date: Wed, 11 Nov 2026 22:05
25 lines
1977 bytes
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]
Technical Details
Message-ID: <11d2ors$3e1fm$4@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: <11cv6t1$2694b$1@dont-email.me> <qTKdndcN67VCTmn3nZ2dnZfqn_GdnZ2d@giganews.com>

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: Lawrence D’Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.c
Subject: Re: new neat syntax discovered for
Date: Wed, 11 Nov 2026 22:05:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <11d2ors$3e1fm$4@dont-email.me>
References: <11cv6t1$2694b$1@dont-email.me>
	<qTKdndcN67VCTmn3nZ2dnZfqn_GdnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 11 Nov 2026 22:05:49 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3606006"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18EMODmppaF3QsHsI1sm+2v"; posting-host="ff2a0e441644838ad98c3cac45761627"
User-Agent: Pan/0.165 (Kostiantynivka)
Cancel-Lock: sha1:FCtoPplIZuGsTccvLZqHu1K3UgE= sha256:QbRyhrv7nfyc6rQhILUqGx/1FEVJatQh0XZViNbspr4=
	sha1:zDlEF8YL1X/7nRADgYpO/PS8cWM= sha256:vSVfynq6u2R/57XlqMPa9ZVe/impWTMEOGf5wLn9jQA=