www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Top 5

reply bearophile <bearophileHUGS lycos.com> writes:
Andrei Alexandrescu:
 Last time I looked it was delegate-based, is that still the case?

It is... But I think there's an important missing point here. If future D wants to support functional-style coding, it has to digest delegates/functions efficiently, because they are everywhere in that style of coding. I can't think of D as a functional language if I can't use functions efficiently. So instead of pulling functions/delegates out my code, can D compiler grow better inlining/management of them, etc? :-) Bye, bearophile
Oct 09 2008
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
bearophile wrote:
 Andrei Alexandrescu:
 Last time I looked it was delegate-based, is that still the case?

It is... But I think there's an important missing point here. If future D wants to support functional-style coding, it has to digest delegates/functions efficiently, because they are everywhere in that style of coding. I can't think of D as a functional language if I can't use functions efficiently. So instead of pulling functions/delegates out my code, can D compiler grow better inlining/management of them, etc? :-)

I was thinking of delegates vs. aliases. Andrei
Oct 09 2008