Parametric Polymorphism
Kay Schluehr
kay.schluehr at gmx.net
Mon Sep 26 04:52:21 EDT 2005
Catalin Marinas wrote:
> Hi,
>
> Sorry if this was previously discussed but it's something I miss in
> Python. I get around this using isinstance() but it would be cleaner
> to have separate functions with the same name but different argument
> types. I think the idea gets quite close to the Lisp/CLOS
> implementation of methods.
Guido himself addressed multimethods in his Artima blog:
http://www.artima.com/weblogs/viewpost.jsp?thread=101605
See also the subsequent discussion about subtyping problems.
Kay
More information about the Python-list
mailing list