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

Timon Gehr timon.gehr at gmx.ch
Sun Jun 9 23:16:12 UTC 2019


On 09.06.19 23:01, Jonathan Marler wrote:
> On Sunday, 9 June 2019 at 19:43:54 UTC, Andrei Alexandrescu wrote:
>> On 6/9/19 7:27 AM, aliak wrote:
>>> With reorderable, as Walter pointed out, what't the order 
>>> (parameter-wise or argument-wise).
>>
>> Lexical order of course.
> 
> Lexical order of the definition or the caller?
> ...

Lexical order means lexical order. It's the order in which the arguments 
are written in the source code.

> So far we have 1 for the caller and 1 for the definition.

This is simply not true. Count again.

> Both seem to 
> think their choice is the obviously correct one :)
> ...

One of those two is wrong, and is actually a minority.

>    > Patrick Schluter:
>    > They are in the order of declaration of the function...There's no 
> reason to evaluate it any other order ...
> ...

Clearly there are multiple reasons to do that.

>    > Paul Backus:
>    > Personally, I think the obviously-correct choice is to evaluate 
> them in lexical order (i.e., order of the call).
> 

Yes.


More information about the Digitalmars-d mailing list