Multiple dispatch again

Samuele Pedroni pedronis at bluewin.ch
Thu Jan 2 11:36:34 EST 2003


"Anders J. Munch" <andersjm at dancontrol.dk> ha scritto nel messaggio
news:3e145c1e$0$71692$edfadb0f at dread11.news.tele.dk...
> "David Mertz" <mertz at gnosis.cx> wrote:
> > I've got to thinking about multimethods/multiple dispatch lately.  I
> > wonder if Pythonistas have some futher opinions on the use of these.
>
> Theoretically multimethods are a great idea.  Being an elegant
> generalization of object-orientation, having multimethods available
> may save you from a clumsy workaround every once in a blue moon.
>
> The problem is that designs that take full advantage of multimethods
> are all too often bad.

The problem is that designs that take full advantage of X are all too often
bad.

[I don't find the counter-analysis of the dull example particularly
convincing, super and inheritance are easely abused also with single
dispatch]






More information about the Python-list mailing list