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

Walter Bright newshound2 at digitalmars.com
Sun Feb 9 19:49:27 UTC 2020


On 2/9/2020 10: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.

Since parameter names are not part of the name mangling, you can do things like:

   ---- A.di
   void foo(int x);

   ---- A.d
   void foo(int y) { ... }

And, of course, you can also do:

   ---- A.di
   void foo(int);

   ---- A.d
   void foo(int y) { ... }



More information about the Digitalmars-d mailing list