DIP 1020--Named Parameters--Community Review Round 1
Andre Pany
andre at s-e-a-p.de
Fri Apr 5 17:39:02 UTC 2019
On Friday, 5 April 2019 at 00:17:02 UTC, Q. Schroll wrote:
> On Sunday, 31 March 2019 at 12:33:56 UTC, Mike Parker wrote:
>> [...]
>
> There are a couple of versions a parameter in a function can be
> syntactically appear:
>
> [...]
If we really want to go for a new named parameter syntax your
syntax proposal looks the most reasonable so far.
1 no
2. I do not know
3. Yes. I would add following rule: after the first named
argument, only named arguments can follow
4. Yes
Still thinking the struct initialization dip will cover 80% of
the named parameter use case.
Kind regards
Andre
More information about the Digitalmars-d
mailing list