Pretty please: Named arguments
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Mar 2 08:45:03 PST 2011
On 3/2/11 8:45 AM, Jim wrote:
> In addition to that, named template arguments would allow you to
> create very customizable, yet lean types. It would be possible to
> parameterize all components. Basically, if you're not pleased with
> the default search algorithm or container type of a more complex
> object then you can specify your own.
Got to say, named template arguments would be pretty awesome for
policy-based design. There are other ways to deal with that (just accept
variadic arguments and detect policies by signatures) but that's less
clear for the client and aggravates the library writer.
Andrei
More information about the Digitalmars-d
mailing list