News for hackers. Stuff that matters.
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by ryansouza on Sunday March 16, 2014 @02:32AM (#7408172)
Seems to me that Haskell's ability to infix named functions is a much nicer solution over-all
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by pcarbonn on Sunday March 16, 2014 @06:10AM (#7408872)
I agree. I wish python had the capability to infix functions. Maybe the topic for a new PEP ?
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by akehrer on Sunday March 16, 2014 @08:24AM (#7409185)
This is this[1] workaround.

I wonder if a whole set of infix matrix operations could be added to reduce the need to load numpy for simple tasks.

    A @* B
    A @. B
    A @+ B
[1] http://code.activestate.com/recipes/384122/
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by pcarbonn on Sunday March 16, 2014 @01:05PM (#7410182)
Yes, but making it part of the language would bring clear error messages in case of misuse, and would allow the use of a different token, e.g. ":", as in smalltalk