DIP 1030--Named Arguments--Community Review Round 1 Feedback

Walter Bright newshound2 at digitalmars.com
Thu Feb 6 20:34:59 UTC 2020


On 2/6/2020 2:05 AM, Vijay Nayar wrote:
> In this example, "6.7" is the first argument, it does not have an Identifier, 
> but it cannot be matched to the first argument, because "3" has already been 
> filled in for that. Or in this proposal, do the arguments matched via UFCS count 
> as a "previous matched parameter"?

   3.doStuff(6.7, b: "ham")

is simply an alternative syntax to:

   doStuff(3, 6.7, b: "ham")

I.e. no semantic difference.


More information about the Digitalmars-d mailing list