Phillip Eby writes: > In Haskell, interfaces are defined using "typeclasses". A typeclass is > basically a collection of generic functions. For example, you could define > ... > Further, Haskell has a concept of "typeclass instances" which basically > give you adaptation. For example, suppose I have some generic functions
Thanks, Phillip. That's essentially what I'm talking about with CL mixins, as well (though instead of typeclass instances you usually have mixin implementations which are "mixed" into the class which wishes to provide the interface, to give it the methods). That's what I think Py3K should be using, too, instead of "duck typing", which for some reason has come to be thought of (wrongly) as a "feature". Bill _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com