DIP 1030--Named Arguments--Community Review Round 1 Discussion
Timon Gehr
timon.gehr at gmx.ch
Sat Feb 8 10:04:33 UTC 2020
On 07.02.20 16:28, Steven Schveighoffer wrote:
>>
>> It does add the syntax, and I would argue it is not ideal if this
>> fails to pass semantic analysis.
>
> Yes, it's valid syntax, but shouldn't pass semantic -- you named
> arguments that aren't present (AliasSeq does not have parameters named a
> b or c).
> ...
So you are arguing that e.g., std.typecons.Proxy should fail to work
with named arguments?
> But the DIP isn't 100% clear that named variadics cannot receive
> NamedParameter items. It says extra parameters match the "trailing ...
> of variadic parameter lists and Identifiers are not allowed". Not all
> variadic functions have a trailing ... without a name. I would think
> AliasSeq!(TList: 1, 2, 3) should be valid.
>
> -Steve
Why is that more useful than support for forwarding?
More information about the Digitalmars-d
mailing list