Multiple Dispatch

Stephane Ducasse ducasse at iam.unibe.ch
Mon Jun 16 18:19:41 UTC 2003


Hi

I think that this the 5% I know where it worked.
But after this is only my personal experience and I could totally 
wrong. Just pick CLOS or Cecil,
and try.

Stef
On Monday, June 16, 2003, at 03:12 PM, daniel.a.joyce at att.net wrote:

> 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