DIP 1019--Named Arguments Lite--Community Review Round 1

Atila Neves atila.neves at gmail.com
Mon Feb 18 10:17:32 UTC 2019


On Friday, 15 February 2019 at 17:43:52 UTC, 12345swordy wrote:
> On Friday, 15 February 2019 at 17:38:23 UTC, Francesco Mecca 
> wrote:
>> On Friday, 15 February 2019 at 13:49:04 UTC, Atila Neves wrote:
>>> [...]
>>
>> I think that the solution proposed by Atila is better for the 
>> following reasons:
>> 1. it is a library solution
>> 2. allows both the user and the author of a library to specify 
>> functions with named parameters
>> 3. it is very lightweight
>>
>> [...]
>
> You miss the other reason on why it is not enough: Compile time 
> and run-time performance penalty.
> -Alex

Run-time? I'd expect the call to inlined. It'll definitely take 
longer to compile though, but I'm at a loss why named parameters 
in the compiler are expected to be free.


More information about the Digitalmars-d mailing list