DIP 1030--Named Arguments--Community Review Round 1 Discussion
Panke
tobias at pankrath.net
Wed Feb 19 20:00:41 UTC 2020
On Wednesday, 19 February 2020 at 19:13:01 UTC, Jonathan M Davis
wrote:
> On Wednesday, February 19, 2020 8:31:00 AM MST Yuxuan Shui via
>
> Named arguments are completely unnecessary in such a situation.
> The list of arguments is short enough that it's trivial to know
> which is which and what they're for. Having the parameter names
> listed at the call site is just unnecessary cruft, and having
> named arguments in the language opens up the whole issue of
> whether the names src and dst were the best names for dup2.
I just can say that my professional experience leads me to
believe the complete opposite. Named parameters and parameter
names at the call site are useful, aid in understanding the code
and prevent bugs.
More information about the Digitalmars-d
mailing list