Why is there no named parameter support?

Jonathan M Davis via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 8 19:45:08 PDT 2015


On Monday, June 08, 2015 20:36:05 Yuxuan Shui via Digitalmars-d-learn wrote:
> Is there any reasons/difficulties for not implementing named
> parameters?
>
> There is clearly a need:
>
> http://forum.dlang.org/thread/wokfqqbexazcguffwiif@forum.dlang.org#post-pxndhoskpjxvnoacajaz:40forum.dlang.org

Function overloading and named arguments do not play well together, and we
have function overloading, so we're not going to have named arguments.
Walter made that clear at dconf. Now, as Idan pointed out in his reply, work
has been done implement them via a library solution for those that want to,
so you might get something there, but not in the language itself.

- Jonathan M Davis



More information about the Digitalmars-d-learn mailing list