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

Yuxuan Shui yshuiv7 at gmail.com
Wed Feb 19 15:31:00 UTC 2020


On Friday, 7 February 2020 at 03:33:26 UTC, Jonathan M Davis 
wrote:
> but for the most part, they're useful because a function has 
> way too many parameters, in which case, the function should 
> have been designed differently.

Named parameters are not just for when there are too many 
parameters.

Easy example:

     dup2(a, b);

vs

     dup2(src: a, dst: b);




More information about the Digitalmars-d mailing list