[Python-ideas] [RFC] draft PEP: Dedicated infix operators for matrix multiplication and matrix power
Steven D'Aprano
steve at pearwood.info
Tue Mar 18 05:58:04 CET 2014
On Mon, Mar 17, 2014 at 10:35:37AM +0000, Robert Kern wrote:
> On 2014-03-17 05:03, Nick Coghlan wrote:
> >There are plenty of existing left-associative operators that could be
> >used for that if Mike Bayer wanted (or could be convinced) to do so,
> >so I don't see how that observation is relevant to the question of
> >whether or not this particular proposal should be for a
> >right-associative operator.
>
> Although this does suggest that having a right-associative operator might
> provide some useful variety in the operator-overloading-as-DSL ecosystem.
That's a good point. That suggests that adding a second
right-associative operator may be a good idea even if it's not necessary
for numpy.
--
Steven
More information about the Python-ideas
mailing list