Sujet : Re: Interval Comparisons
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 07. Jun 2024, 11:42:03
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3uo5r$21g4g$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Pan/0.158 (Avdiivka; )
On Fri, 7 Jun 2024 11:22:12 +0200, David Brown wrote:
C++ provides flexible
operator overloading combined with a poverty of available operators, so
the relational operators <, >, <= and >= are sometimes used for
completely different purposes, similar to the >> and << operators.
Chaining relational operators would complicate this significantly, I
think.
Python offers just as flexible operator overloading, and it can handle
this feature without any trouble.
Of course, Python has only a fraction of the complexity of C++. It could
be that an unexpected interaction with some other weird C++ feature could
cause problems.