Multiple dispatch again

Mike Meyer mwm at mired.org
Fri Jan 3 03:26:26 CET 2003


"Samuele Pedroni" <pedronis at bluewin.ch> writes:
> From: "David Mertz" <mertz at gnosis.cx>
> > I've got to thinking about multimethods/multiple dispatch lately.  I
> > wonder if Pythonistas have some futher opinions on the use of these.
> > Actually, part of it is that I'd -really- like to better understand use
> > cases for multiple dispatch.  As a trick, I can see it has a certain
> > elegance, but little rock/paper/scissors toys are not, finally,
> > compelling.
> 1) You can think about operators as multimethods vs. __add__ __radd__ .

The interesting question this brings up is how replacing the current
set of rules by a true multiple dispatch mechanism would change adding
types/methods to the existing type lattice. Anyone have any thoughts
on that?

        <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.




More information about the Python-list mailing list