DIP 1019--Named Arguments Lite--Final Review

Yuxuan Shui yshuiv7 at gmail.com
Tue Aug 27 18:05:25 UTC 2019


On Tuesday, 27 August 2019 at 17:39:44 UTC, H. S. Teoh wrote:
> On Tue, Aug 27, 2019 at 05:01:21PM +0000, Yuxuan Shui via 
> Digitalmars-d wrote:
>> On Monday, 26 August 2019 at 21:48:42 UTC, Jonathan M Davis 
>> wrote:
> [...]
>> > 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.
>> 
>> Disagree. Oftentimes having the name clarifies a function, so 
>> the _reader_ doesn't have to read the document to figure out 
>> what a function call does
> [...]
>
> That's exactly Jonathan's point.  The reader *assumes* 
> semantics based on the names of the function and parameters.

Well at this point you might just as well say the reader cannot 
*assume* semantics based on the documentation of the function 
either.





More information about the Digitalmars-d mailing list