named arguments (C++) - Something D could learn from

John Chapman johnch_atms at hotmail.com
Fri Dec 14 23:06:38 UTC 2018


On Friday, 14 December 2018 at 21:22:38 UTC, Dukc wrote:
> On Friday, 14 December 2018 at 20:13:42 UTC, bauss wrote:
>> I still think named arguments should be something to consider 
>> implementing for D, but since everything requires a DIP and 
>> it's very hard to write a DIP that's proper for such a thing 
>> then I guess it'll just be a dream, forever.
>
> Hope if far from lost here. There is not one, but two DIPs in 
> draft stage to add named function parameters to D:
>
> https://github.com/dlang/DIPs/pull/123
> https://github.com/dlang/DIPs/pull/126

If anyone wants to play with an implementation, I've updated 
Jacob Carlborg's old work here: 
https://github.com/jsatellite/dmd/tree/named-arguments



More information about the Digitalmars-d mailing list