DIP 88: Simple form of named parameters

jmh530 via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 25 08:57:28 PST 2016


On Monday, 25 January 2016 at 16:38:19 UTC, arturg wrote:
>
> named arguments solve this problem
>
> void foo(int a = 4, int b = 10, int c = 3) {}
>
> foo(c : 5);
>
> beeing callside documentation is only a byproduct.

I wouldn't classify that as a problem per se, more of an 
inconvenience. And a bigger inconvenience the longer the list of 
default arguments.


More information about the Digitalmars-d mailing list