[Python-ideas] Infix functions

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Feb 26 22:52:47 CET 2014


Andrew Barnert wrote:
> On Feb 25, 2014, at 15:02, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 
>>Also, this kind of style would make it very easy to
>>make subtle mistakes by getting the colons in the
>>wrong places.
> 
> I'm not sure about that. I think in most cases, anywhere you put the colons
wrong will be a SyntaxError.

No, what I mean is forgetting to put a colon in front
of an expression that should have one, or vice versa.
It's related to my next point:

>>It's not quite the same thing as a Lisp macro, because
>>the onus is on the caller to remember which arguments
>>need to be quoted.

-- 
Greg


More information about the Python-ideas mailing list