I'm not sure but it seems that Ruby syntax can be a solution. Here is an
example.
class matrix():
...
def @(self, mat):
...
Instead of the method __add__(self, ...) , we could use the method +(self,
...).
The only change will be to manage dynamical infix lexer for the Python
parser.
Christophe BAL
Le 26 févr. 2014 01:10, "Aaron Meurer" <[email protected]> a écrit :
> Previous PEPs have tried this and failed. This PEP is an attempt at a
> compromise that suits the community's needs but still has potential to
> be accepted by the BDFL.
>
> Aaron Meurer
>
> On Tue, Feb 25, 2014 at 5:02 PM, Sergey Kirpichev <[email protected]>
> wrote:
> > On Tuesday, February 25, 2014 8:31:02 PM UTC+4, Aaron Meurer wrote:
> >>
> >> Some people on this list might be interested in this. Some folks are
> >> giving another shot at writing a PEP to add a new operator to Python
> >> for matrix multiplication. The discussion is at
> >> https://github.com/numpy/numpy/pull/4351.
> >
> >
> > Really bad idea. It's better to have an ability to define arbitrary
> > infix operator (like Haskell, for example).
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "sympy" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > To post to this group, send email to [email protected].
> > Visit this group at http://groups.google.com/group/sympy.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sympy/21d80555-342e-4ae1-b7f0-9db077bc37f6%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAKgW%3D6Lq2v3sQb_KAoT%2BCWetfaSh4LPGOM0J%2BpXpLhHtb8XChA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/CAAb4jGn_K-_QTyvi8zQNYxW-UsQsDkj7rD9xiQPQHWfHbNdu6g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.