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

rikki cattermole rikki at cattermole.co.nz
Mon Feb 10 02:25:07 UTC 2020


On 10/02/2020 7:32 AM, Steven Schveighoffer wrote:
> 
> Not sure this could be doable in D. But for a main language that started 
> out with significant naming of parameters (inheriting this from 
> objective-C), it's a good place to look for inspiration here.

Alternatively support implicit construction of structs as parameters i.e.

void foo(Nullable!int ms);

foo(ms: 3);

You have to do some mapping internally but it means even if you 
deprecate a name, you can still keep the old ones.


More information about the Digitalmars-d mailing list