Missing interfaces in Python...
Ben
groups at theyoungfamily.co.uk
Thu Apr 20 08:34:37 EDT 2006
Oh I agree entirely. They are just equivalent ways of managing the
complexity of large projects.
I guess interfaces are "providing" specifications, and generics are
"receiving" specifications, so single dispatch methods can be identical
to interfaces only "inverted".
Therefore, as there is no interface equivalent of full multi-methods,
it shows that multimethods are the only primative you need to implement
all of the above
Cheers,
Ben
More information about the Python-list
mailing list