February 20, 2020 Re: DIP 1030--Named Arguments--Community Review Round 1 Discussion | ||||
---|---|---|---|---|
| ||||
Posted in reply to 12345swordy | On Thursday, 20 February 2020 at 15:34:31 UTC, 12345swordy wrote:
> [snip]
>
> I don't think nor do I expect that people would used named arguments all the time when using another persons code.
>
> -Alex
What's that saying? If some code can be written, it will be written.
Regardless, it's a problem even for your own code too. If you have a big code base that uses a mix of positional and keyword arguments, then changing the names of function parameters causes code to break.
|
February 20, 2020 Re: DIP 1030--Named Arguments--Community Review Round 1 Discussion | ||||
---|---|---|---|---|
| ||||
Posted in reply to jmh530 | On Thursday, 20 February 2020 at 15:51:57 UTC, jmh530 wrote:
> On Thursday, 20 February 2020 at 15:34:31 UTC, 12345swordy wrote:
>> [snip]
>>
>> I don't think nor do I expect that people would used named arguments all the time when using another persons code.
>>
>> -Alex
>
> What's that saying? If some code can be written, it will be written.
>
> Regardless, it's a problem even for your own code too. If you have a big code base that uses a mix of positional and keyword arguments, then changing the names of function parameters causes code to break.
Which it is trivial to fix, if you have right tools.
-Alex
|
Copyright © 1999-2021 by the D Language Foundation