[Python-ideas] Infix functions

Stephen J. Turnbull stephen at xemacs.org
Mon Feb 24 03:08:47 CET 2014


Steven D'Aprano writes:

 > I can't think of many useful examples of infix operators that aren't 
 > mathematical, and even fewer that aren't just as easily written as 
 > methods or functions.

The copula, not to mention all non-mathematical transitive verbs, in
English?  This feature would make it a lot easier to write DSLs in
Python.  (I don't know if that would necessarily be a good thing.)



More information about the Python-ideas mailing list