On 2009-03-16 15:23, Stefan Behnel wrote: > Dag Sverre Seljebotn wrote: >> Stefan Behnel wrote: >>> Plus, it does not solve the problem at hand, which is a problem with the >>> semantics of an operator and not with the semantics of a type. >> Well, strictly speaking, Python % etc. means "invoke __mod__"; and >> different classes can do different things (indeed NumPy uses C >> semantics; for speed I presume). So it's not true that types and >> operators are orthogonal in language design. > > I didn't say that they are "orthogonal in language design". I just said > that this specific problem "at hand" is a problem with operator semantics, > not with type semantics. Here's one place where I tried to make that clear: > > http://permalink.gmane.org/gmane.comp.python.cython.devel/4907
I think Dag's point is that "operator semantics" is not something that you can distinguish from "type semantics". You *are* claiming that the two are orthogonal if you think that the issue at hand can be just one and not the other. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
