I wish I could use D for everything

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri May 1 06:42:46 PDT 2009


Walter Bright wrote:
> Any fool can design something complicated. Genius is in finding the 
> underlying simplicity. For example, in C++, function overloading is done 
> with a very complicated set of rules and a mass of special cases. But 
> C++ function template overloading is done with one simple rule: partial 
> ordering. C++ couldn't go back and fix function overloading, but D can. 
> D overloads both functions and function templates with partial ordering, 
> which is a simple rule that gives results equal to or better than the 
> complex rules.

Yes. There's one problem though: I'm not seeing the binary implemented 
this rule in my inbox :o).

Andrei



More information about the Digitalmars-d mailing list