DIP 1020--Named Parameters--Community Review Round 2
Max Haughton
maxhaton at gmail.com
Wed Sep 11 00:19:14 UTC 2019
On Tuesday, 10 September 2019 at 23:57:33 UTC, Jonathan Marler
wrote:
> On Tuesday, 10 September 2019 at 22:57:47 UTC, Max Haughton
> wrote:
>> On Tuesday, 10 September 2019 at 19:50:44 UTC, Jonathan Marler
>> wrote:
>>> On Tuesday, 10 September 2019 at 19:34:45 UTC, Max Haughton
>>> wrote:
>>>> [...]
>>>
>>> Yes using `public` would require a grammar change. However,
>>> the feature requires other grammar changes as well. Also,
>>> using either `public` or `@named` without the feature will
>>> result in compilation errors so they're both on the same
>>> level in that regard.
>>
>> https://run.dlang.io/is/r409XD @named (on function parameters)
>> compiles as of today
>
> You had to define the 'named' symbol. Which means if you
> compiled a module using it, it wouldn't compile because named
> wouldn't be defined.
I have used a UDA called named before. Using @named in the final
DIP would break code for no reason
More information about the Digitalmars-d
mailing list