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

Yuxuan Shui yshuiv7 at gmail.com
Sat Feb 16 13:51:01 UTC 2019


On Friday, 15 February 2019 at 22:48:52 UTC, Rubn wrote:
> On Friday, 15 February 2019 at 12:56:45 UTC, Mike Parker wrote:
>> [...]
>
> drawRect(x: 0, y: 0, width: 1, height: 1);
> drawRect(width: 1, height: 1, x: 0, y: 0);
>
> The DIP doesn't state what order these are executed in. The 
> spec states parameters are executed left to right. When you can 
> rearrange the function arguments at the call site, is it going 
> to call left to right as it is orangized at the call site, or 
> left to right as according to as the function definition?
>

Good point. I will fix this in next revision.

Thanks.



More information about the Digitalmars-d mailing list