Discussion Thread: DIP 1030--Named Arguments--Final Review

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed May 13 06:11:46 UTC 2020


On Monday, 11 May 2020 at 11:37:07 UTC, Mike Parker wrote:
> This is the discussion thread for the Final Review of DIP 1030, 
> "Named Arguments":
>
> https://github.com/dlang/DIPs/blob/7d114c93edb02d8fc4b05f0716bdb6057905fec2/DIPs/DIP1030.md

I see people mentioning wrapper overloads to enable deprecation 
of old parameter names. But why not just support this in code?

Something like:

```D
void foo (@deprecated("x_val") int x, @deprecated("y_val") int y)
{
}
```

And then the compiler emits warnings if you use `foo(x_val : 10, 
y_val : 20)`.


More information about the Digitalmars-d mailing list