Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Chris Ahlstrom Newsgroups: comp.os.linux.advocacy Subject: Re: Why Python When There Is Perl? Date: Sat, 6 Apr 2024 07:59:04 -0400 Organization: None Lines: 37 Message-ID: References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com> Reply-To: OFeem1987@teleworm.us MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 06 Apr 2024 11:59:06 +0200 (CEST) Injection-Info: dont-email.me; posting-host="90e30eafd9847f9eddc41ceb70c1a75f"; logging-data="2180756"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jwGuXJkwr1drKwlV8Zbr1" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:SZaTZm23Ch4WeEemJ325x1/JpNs= X-Slrn: Why use anything else? X-Mutt: The most widely-used MUA X-User-Agent: Microsoft Outl00k, Usenet K00k Editions Bytes: 2832 Lawrence D'Oliveiro wrote this copyrighted missive and expects royalties: > On Fri, 5 Apr 2024 08:40:26 -0400, Chris Ahlstrom wrote: > >> Lawrence D'Oliveiro wrote this copyrighted missive and expects >> royalties: >> >>> On Wed, 3 Apr 2024 08:28:07 -0400, Chris Ahlstrom wrote: >>> >>>> The C++ enum-class is scoped and strongly typed, thus a bit >>>> restrictive. >>>> Implicit conversion (e.g. to int or char) is not supported. >>> >>> Since Python supports multiple inheritance, you can define a subclass >>> which inherits from both enum and, say, int. Or enum and str. >> >> Meh. > > Along with C3 linearization? > > Until C++ gets its own equivalent feature, then suddenly it’ll be not-meh. Heh heh. Another check-box in the feeeeeechure matrix. > You were a bit excited over metaclasses for a while back there, weren’t > you? Not really excited, just curious. Having dealt with them (and stereotypes) in SysML, not itching to have that in C++. > 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 are a fluke of the universe; you have no right to be here.