Keyword arguments / Named parameters library implementation

Alex Rønne Petersen xtzgzorex at gmail.com
Tue Mar 20 09:22:35 PDT 2012


On 20-03-2012 17:01, bearophile wrote:
> Andrei Alexandrescu:
>
>> I think we're very far away from them.
>
> What do you mean? Do you mean that Matthias Walter's
> implementation is very far from being a good enough implementation of named
> arguments? :-)
>
> (I have not said that named arguments are necessary. I have said that I
> think it's not probable that a library implementation of them will be
> good enough.)
>
> Hugs,
> bearophile

I have to agree that a library implementation cannot provide what the 
language would be able to here. Just the requirement that functions with 
named arguments must be templatized makes the strategy more or less 
unusable for class hierarchies.

-- 
- Alex


More information about the Digitalmars-d mailing list