Dream Feature Regarding Default Arguments
w0rp
devw0rp at gmail.com
Mon Apr 7 10:46:42 PDT 2014
On Sunday, 6 April 2014 at 14:47:28 UTC, JN wrote:
> Wouldn't it be better to have named parameters like in Python or
> C#? That way you could call the function like:
>
> func(foo=myFoo) or func(bar=myBar) or func(foo=myFoo, bar=myBar)
> and there would be no ambiguity.
Named parameters would be nice to have. I'm not sure how you
would implement them in D, though.
More information about the Digitalmars-d
mailing list