DIP 1020--Named Parameters--Community Review Round 2

SashaGreat s at g.com
Tue Sep 10 11:51:02 UTC 2019

>Different options for opt-in named parameter syntax have been 
>proposed and discussed in the D programming language community. 
>DIP 88 proposed a colon to denote a named parameter, DIP 1019 
>originally proposed the use of the @named function attribute, 
>and this DIP originally proposed that angle brackets be used to 
>denote named parameters. After feedback from the first round of 
>review, this DIP has been amended to propose an new @named 
>attribute with which to annotate parameters rather than 

>struct Map(@named alias Function, @named InputType, @named 

As a C# programmer which has this feature too, this is 
excessively noise in contrast.

Wouldn't be easier to go with Opt-Out (Or In) with a flag on 
Compiler level?


More information about the Digitalmars-d mailing list