[Python-3000] Adaption & generic functions [was Generic functions]

Fred L. Drake, Jr. fdrake at acm.org
Fri Apr 7 20:40:20 CEST 2006


On Friday 07 April 2006 14:33, Guido van Rossum wrote:
 > OTOH if you really like to express implementing an interface as
 > inheriting from that interface, what's the problem with inheriting the
 > adapter?
Ugh! Inheritance should only be done to get implementation. If there's value 
in default implementation of methods, a base class can be provided 
independently of the interface.
 -Fred
-- 
Fred L. Drake, Jr. <fdrake at acm.org>


More information about the Python-3000 mailing list

AltStyle によって変換されたページ (->オリジナル) /