Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <uuj1kh$3phh2$7@dont-email.me>
Deutsch   English   Français   Italiano  
<uuj1kh$3phh2$7@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Wed, 3 Apr 2024 07:48:33 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <uuj1kh$3phh2$7@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
	<utd86u$1ipcj$1@solani.org> <utfo33$1o6mu$3@dont-email.me>
	<l61vaiFn16lU2@mid.individual.net> <utgikt$21nsq$1@dont-email.me>
	<l646ogF2m1hU4@mid.individual.net> <utjv9u$2u8be$1@dont-email.me>
	<utleqa$3993q$2@dont-email.me> <utmic2$3k6u5$10@dont-email.me>
	<utnmea$3tet3$4@dont-email.me> <utpaea$cntv$3@dont-email.me>
	<uuge9n$32hhs$16@dont-email.me> <uugv1d$36oe5$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 03 Apr 2024 07:48:33 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="16e69d2ca1c4626c1f9269404c95150f";
	logging-data="3982882"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/+q3XjlNlET19y6CTE1n8l"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:As7N2AdmdWDVgQVAqPxU4XJer9M=
Bytes: 2596

On Tue, 2 Apr 2024 08:51:57 -0400, Chris Ahlstrom wrote:

> Lawrence D'Oliveiro wrote this copyrighted missive and expects
> royalties:
> 
>> On Sun, 24 Mar 2024 09:39:21 -0400, Chris Ahlstrom wrote:
>>
>>> C++ can do template metaprogramming.
>>
>> Python doesn’t need two different languages for “compile-time” versus
>> “run-time” programming; it uses the same language for both.
> 
> I think that Alexander Stepanov would say..... [some incomprehensible
> C++ technical term]

Also, consider enums. I think C++ only has the old, boring, C-style enums. 
Java managed to introduce quite an advanced enum facility, with the 
ability to attach custom methods and attributes to enum instances.

Python offers the same sort of thing as Java. Only, whereas Java enums are 
a feature that is built into the core language, Python does it as a 
standard library module, written in pure Python.

How do we do it? Metaclasses! (Also descriptors help.)

>> Function definitions and class definitions are not declarations: they
>> are just forms of assignment statement.
>>
>> And then there are metaclasses ...
> 
> I wonder if the C++ metaclass proposal ever made it into C++. Will have
> to check....

I’ll be waiting.