[Python-3000] Abilities / Interfaces: why not adapt()?
Bill Janssen
janssen at parc.com
Tue Nov 21 17:47:09 CET 2006
> To some extent I agree, but I also think that generic functions are
> even more flexible. (As per the previous discussion which started
> covering adaptation and moved on to generic functions).
While I like generic functions, they only solve part of the problem.
There are cases other than calling a function when a program needs to
be able to look at a type and understand what to do with it. I'd
favor promoting an inheritance-based interface system for type
understanding, then move on to generic functions based on that
infrastructure.
Bill
More information about the Python-3000
mailing list