DIP 1019--Named Arguments Lite--Community Review Round 1

Andre Pany andre at s-e-a-p.de
Sat Feb 16 12:41:01 UTC 2019


On Friday, 15 February 2019 at 12:56:45 UTC, Mike Parker wrote:
> This is the feedback thread for the first round of Community 
> Review for DIP 1019, "Named Arguments Lite":
>
> https://github.com/dlang/DIPs/blob/23ef47a94e0fdd5ddc4b2f6b2f4dcfd3c1f43aa6/DIPs/DIP1019.md
>
> All review-related feedback on and discussion of the DIP should 
> occur in this thread. The review period will end at 11:59 PM ET 
> on March 1, or when I make a post declaring it complete.
>
> At the end of Round 1, if further review is deemed necessary, 
> the DIP will be scheduled for another round of Community 
> Review. Otherwise, it will be queued for the Final Review and 
> Formal Assessment by the language maintainers.
>
> Please familiarize yourself with the documentation for the 
> Community Review before participating.
>
> https://github.com/dlang/DIPs/blob/master/PROCEDURE.md#community-review
>
> Thanks in advance to all who participate.

With the struct initialization DIP there will come also named 
arguments complicity.

https://github.com/wilzbach/DIPs/blob/b1283b455b635d7dcbc2c871d2aa47cc67190059/DIPs/DIP1xxx-sw.md

Yes, the callee has to provide method/function  overload with a 
structure containing all arguments. But in theory Phobos could 
provide a mixin/template to make this task a one liner.

In my opinion this fits much nicer than introducing a new 
attribute.

Kind regards
Andre



More information about the Digitalmars-d mailing list