Collection interfaces
Topmind
topmind at technologist.com
Thu Mar 1 22:01:00 EST 2001
> Topmind wrote:
> >
> > There is no polymorphism if there is
> > only one "type" with a bunch of independant attributes -
> > HAS-A reigns and sub-IS-A is rare.
>
> Polymorphism is not inherently dependent on any
> kind of inheritance or classification system.
> In Python, for instance, most functions are quite
> promiscuous and will happily operate on any
> objects which have the right methods, without there
> having to be any inheritance relationship between
> them.
>
> --
> Greg Ewing, Computer Science Dept, University of Canterbury,
> Christchurch, New Zealand
> To get my email address, please visit my web page:
> http://www.cosc.canterbury.ac.nz/~greg
>
I kind of had (having) this discussion with Jay recently
WRT Smalltalk. I would
give you a message ID but the designers of usenet were
drunk when they designed that part.
-tmind-
More information about the Python-list
mailing list