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

bachmeier no at spam.net
Fri Feb 7 18:17:01 UTC 2020


On Friday, 7 February 2020 at 17:06:21 UTC, Piotrek wrote:

> Regarding API design. To some extent the names of arguments are 
> already a part of API in any programming language. They form a 
> documentation for users which can be referenced in many places.

This has been discussed many times already, but a big problem 
with named arguments is that it creates a lot of overhead when 
writing new functions. Rather than worrying about what the 
functionality is supposed to do, you have to think of argument 
names that are good for the long run.* That's a whole lot of 
overhead.

* Of course, you can come back to it "in the future" after you 
have your library finished and tested. Nobody in the history of 
programming has ever done that.


More information about the Digitalmars-d mailing list