[Python-ideas] [RFC] draft PEP: Dedicated infix operators for matrix multiplication and matrix power
Guido van Rossum
guido at python.org
Wed Apr 9 05:33:30 CEST 2014
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 at gmail.com> wrote:
> On Wed, Apr 9, 2014 at 9:00 AM, Michael Mitchell
> <epsilonmichael at 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 at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140408/9c448869/attachment-0001.html>
More information about the Python-ideas
mailing list