Re: Why Python When There Is Perl?

Liste des GroupesRevenir à ol advocacy 
Sujet : Re: Why Python When There Is Perl?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.advocacy
Date : 06. Apr 2024, 01:17:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uuq0qr$1lcgf$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
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.

You were a bit excited over metaclasses for a while back there, weren’t
you? Until you realized it would never work, because classes are not
objects in C++.

Date Sujet#  Auteur
2 Oct 24 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal