DIP 1030--Named Arguments--Community Review Round 1 Discussion

Panke tobias at pankrath.net
Wed Feb 19 20:04:56 UTC 2020


On Wednesday, 19 February 2020 at 19:57:06 UTC, 12345swordy wrote:
> On Wednesday, 19 February 2020 at 19:34:53 UTC, bachmeier wrote:
>> On Wednesday, 19 February 2020 at 19:13:01 UTC, Jonathan M 
>> Davis wrote:
>>> [...]
>>
>> I agree. I know there are complaints about being required to 
>> use a particular tool to use a language, but this particular 
>> argument for named parameters uses a language change - one 
>> with big side effects - to do something that should be done by 
>> an IDE. The nice thing about proper editor support is that it 
>> continues to work exactly as expected even if you do change 
>> the parameter names in the library.
>
> What editor are you specifically talking about here and how 
> should it be done? Generating comments like this?
>
> go(\*a*\ 1);
>
> Alex

E.g. CLion does it. In renders the parameter names at the call 
site without changing the code at all (it does not insert 
comments). It is a very useful feature. Granted, if that support 
was readily available for D than the argument for named 
parameters would be weaker.



More information about the Digitalmars-d mailing list