Multiple Dispatch

daniel.a.joyce at att.net daniel.a.joyce at att.net
Mon Jun 16 13:12:21 UTC 2003


Hmmm?

Well, Integer could heavily use multi-methods, as could code I am working on. I
find Double Dispatch to be ugly, as it spreads code all throughout classes.

<Integer> + <Float>

Where Int implements +, and + sends "AddInteger: Integer" to Float so float can
get some sort of type information.

-Daniel
> Hi lex
> 
> I worked with CLOS during 4 years and I did not find the advantage of 
> multi dispatch.
> You know this is like multiple inheritance you need that in 5% of the 
> case and it
> makes the language much more complex for the rest 95%
> 
> Stef



More information about the Squeak-dev mailing list