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

Yuxuan Shui yshuiv7 at gmail.com
Thu Jun 6 10:07:30 UTC 2019


On Wednesday, 5 June 2019 at 23:00:29 UTC, Guillaume Boucher 
wrote:
> On Wednesday, 5 June 2019 at 13:03:26 UTC, Mike Parker wrote:
>> This is the feedback thread for the second round of Community 
>> Review for DIP 1019, "Named Arguments Lite":
>>
>> https://github.com/dlang/DIPs/blob/9c9cc39246de4c449fe1e6cb6b27f7e426ff1eb9/DIPs/DIP1019.md
>
> Quoting the DIP:
>
>> Future changes
>> 
>> This DIP does not prohibit future proposals for adding 
>> parameter reordering, partially-specified parameter names with 
>> reordering, named template parameters, omission of default 
>> arguments by using named arguments, and other similar things. 
>> Nor does it prohibit the inclusion of parameter names as part 
>> of mangled function names.
>
> I'd argue this claim is false.
>
> [snip]
>
> The only way I see to sanely introduce reordering would be to 
> treat forward declarations and the definition equally and 
> refuse to compile if there's any ambiguity.  Which is a fairly 
> impactful change that breaks code, even if that code doesn't 
> use named arguments.

This won't break other code if this is only applied to call sites 
that use named arguments.

>
> So unless someone has a good idea how to deal with those cases, 
> I'd say:
>



More information about the Digitalmars-d mailing list