Multiple dispatch in lib was Re: Old comments about Java

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Apr 25 10:53:31 PDT 2011


On 4/24/11 10:53 AM, Adam D. Ruppe wrote:
> KennyTM~ wrote:
>> I think these should be static functions?
>
> At first my idea was free functions, but getOverloads only works with
> classes, so I pasted them in without really thinking about it.
>
> But yes, I think you're right.
>
>> BTW, you toy example is way too long. 40 lines of template mixin
>> is  enough:
>
> Heh, that's awesome. Thanks!

I think a well-thought and well-documented multiple dispatch library 
would be a valuable addition to Phobos. Don't forget that a major issue 
is modularity.

Andrei


More information about the Digitalmars-d mailing list