DIP 1019--Named Arguments Lite--Community Review Round 2
Jonathan Marler
johnnymarler at gmail.com
Thu Jun 6 19:58:39 UTC 2019
On Thursday, 6 June 2019 at 19:50:09 UTC, FeepingCreature wrote:
> On Thursday, 6 June 2019 at 19:17:38 UTC, Jonathan Marler wrote:
>>
>> There's a big issue with this DIP. It immediately allows any
>> function call to increase coupling with the corresponding
>> function definition with no way to disable it.
>
> I just want to explicitly note that increasing coupling between
> the call site and the function definition is the entire point
> of named parameters.
Correct. But you don't want to increase everywhere with no way
to disable it. Parameters names have been completely private
from the caller for the life of D, and you suddenly expose ALL OF
THEM. What's worse is unnamed parameters are preferred in the
majority of cases, so you're increasing coupling for EVERY case
to help the rare cases where it you actually want it.
More information about the Digitalmars-d
mailing list