On Wed, Feb 26, 2014 at 2:35 PM, Christophe Bal <[email protected]> wrote:
> I'm not sure but it seems that Ruby syntax can be a solution. Here is an 
> example.

Ruby can't do this as flexible as Haskell.  AFAIK, only few predefined
operators can be used.

> class matrix():
>     ...
>    def @(self, mat):
>         ...
>
> Instead of the method __add__(self, ...) , we could use the method +(self, 
> ...).

How about __radd__?

-- 
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/20140226122242.GA8747%40darkstar.order.hcn-strela.ru.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to