[Python-ideas] Infix matrix-multiply, but not general infix operators?

Ethan Furman ethan at stoneleaf.us
Fri Mar 21 06:01:11 CET 2014


On 03/20/2014 08:40 PM, Andrew Barnert wrote:
>
> Also, imagine what it would look like to chain these:
>
>      spam spam eggs baked beans spam spam
>
> Maybe the parser can figure out that the spam, baked, and spam are
>  operators and the spam, eggs, beans, and spam are operands, but what
>  hope does any human have?

Why would spam be able to be both a variable and an operator?  Hmm, perhaps because of the first-class citizen thing -- 
so the leading grit says "make it work" and without it is just passing it around.

--
~Ethan~


More information about the Python-ideas mailing list