DIP 88: Simple form of named parameters
arturg via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jan 25 08:38:19 PST 2016
On Monday, 25 January 2016 at 16:17:27 UTC, Chris Wright wrote:
>
> It's a comment that the compiler verifies. You could argue that
> the bulk of the type system is comments that the compiler
> verifies.
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.
More information about the Digitalmars-d
mailing list