What about letting x.( ... ? ... ) be equivalent to ( ... x ... )
Alex Martelli
aleax at mail.comcast.net
Mon Oct 10 04:56:45 EDT 2005
al <al at none.fr> wrote:
> And it solve a problem that in all object oriented langages, a method
> that process 2 or more different classes of objets belongs just to one
> of those classes.
Your use of the word "all" in the phrase "all object oriented languages"
is erroneous. There ARE several object-oriented languages which solve
this issue neatly and elegantly by using "multi-methods". The most
easily accessible of those is probably still Dylan; see
<http://www.double.co.nz/dylan/> for more
I don't believe that Python will ever have multi-methods (any more than
I expect to see them in Java, C++ or C#), but that's no reason to forget
them:-).
Alex
More information about the Python-list
mailing list