DIP 1019--Named Arguments Lite--Final Review
Kagamin
spam at here.lot
Mon Aug 26 14:18:21 UTC 2019
On Saturday, 24 August 2019 at 01:09:48 UTC, Jonathan M Davis
wrote:
> Personally, I'm against named arguments in general. They make
> the parameter names part of the API, which adds another set of
> names that you have to get right up front and which will be
> bike-shedded to death.
Errors in function names happen too.
> The _only_ use case IMHO where they add any real value is when
> you have a long parameter list where most of the parameters
> having default arguments.
Another use case is replacing the Flag thing. When a function has
only one parameter and it's has primitive type, names argument
will have merit.
More information about the Digitalmars-d
mailing list