Bengt Richter wrote: >OTOH, there is precedent in e.g. fortran (IIRC) for named operators of the >form .XX. -- e.g., .GE. for >= so maybe there could be room for both.
Yes, but in Fortran 90 "==", ">=" etc. are equivalent to ".EQ." and ".GE.". It is also possible to define operators on native and user-defined types, so that Y = A .tx. B can be written instead of the expression with the F90 intrinsic functions Y = matmul(transpose(A),B) The Fortran 95 package Matran at http://www.cs.umd.edu/~stewart/matran/Matran.html uses this approach to simplify the interface of the Lapack library and provide syntax similar to that of Matlab and Octave. I don't know if the syntax of your idea clashes with Python, but it is viable in general. -- http://mail.python.org/mailman/listinfo/python-list