The question is academic. Regardless of which answer you choose that is not going to happen.


On Tue, Apr 8, 2014 at 11:30 PM, Chris Angelico <rosuav@gmail.com> wrote:
On Wed, Apr 9, 2014 at 9:00 AM, Michael Mitchell
<epsilonmichael@gmail.com> wrote:
> I'm not sure why a composition operator has never been added to the
> functools library, but I'd make the observation that a composition function
> wouldn't be much less verbose than in my earlier lambda example. A infix
> binary operator, however, would be quite more concise, especially so when
> chaining multiple functions.

Is "a @ b" equivalent to "lambda x: a(b(x))" or to "lambda x:
b(a(x))"? Is there a sufficiently-obvious way to make it clear that
the one on the right gets called first?

ChrisA
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/



--
--Guido van Rossum (python.org/~guido)