Flag proposal
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sat Jun 11 12:58:06 PDT 2011
On 6/11/11 1:59 PM, Michel Fortin wrote:
> On 2011-06-11 13:08:48 -0400, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> said:
>
>> With named parameters, we'd have something along the lines of:
>>
>> topNIndex(a, sortOutput : true);
>>
>> which is nice, but not present in the language (and I can tell after
>> talking to Walter it won't be anytime soon).
>
> The funny thing is that named arguments are not that difficult to
> implement as long as you don't allow reordering. Much easier than
> const(Object)ref actually.
>
> <https://github.com/michelf/dmd/commit/673bae4982ff18a3d216bc1578f50d40f4d26d7a>
>
>
> Took
> me less time than what I took arguing about Flag!"".
Love the attitude!! Let's see what Don and Walter think.
Andrei
More information about the Digitalmars-d
mailing list