Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.os.linux.advocacy Subject: Re: Why Python When There Is Perl? Date: Wed, 10 Apr 2024 07:01:44 -0000 (UTC) Organization: A noiseless patient Spider Lines: 27 Message-ID: References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 10 Apr 2024 07:01:44 +0200 (CEST) Injection-Info: dont-email.me; posting-host="7ce03bb5457ab82bf7e463e8fecedba8"; logging-data="859926"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PR21uE+c2vSA4k66KCtUt" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:HeluNarVV6wchtw82cp+cyRk5W0= Bytes: 2607 On Tue, 9 Apr 2024 08:46:03 -0400, Chris Ahlstrom wrote: > Lawrence D'Oliveiro wrote this copyrighted missive and expects > royalties: > >> On Sat, 6 Apr 2024 07:59:04 -0400, Chris Ahlstrom wrote: >> >>> Lawrence D'Oliveiro wrote this copyrighted missive and expects >>> royalties: >>> >>>> Until you realized it would never work, because classes are not >>>> objects in C++. >>> >>> :-D WTF you talkin', Willis? Ye nae true Scotman fallacy? >> >> You tell me: does C++ accept “true Scotsmen” among its users/features, >> or not? > > C++ provides many forms of programming, including object-oriented > programming. But no metaclasses, like Python does. I came up with an interesting use for them, to allow convenient definition of a hierarchy of exception classes representing return codes from a given API. More details in the “Uses For Metaclasses” notebook in this collection .