A nice way to step into 2012

Timon Gehr timon.gehr at gmx.ch
Wed Dec 28 16:14:18 PST 2011


On 12/29/2011 12:58 AM, so wrote:
> On Thu, 29 Dec 2011 01:48:57 +0200, Timon Gehr <timon.gehr at gmx.ch> wrote:
>
>> The moment NP by default is introduced is the moment all parameter
>> names in all libraries are set in stone.
>
> This is completely false. NP affects only those that "want" to use it,
> no one else. Again, no one.
> It is just like inline asm.
>

No, it is not. If all parameters are named parameters, then the library 
writers have to be aware of the fact that some users might use named 
arguments. Again, every library writer is affected.

>> Those names were mere implementation details prior to that point in time.
>> Having parameter names contribute to the interface means that all
>> developers need to spend time thinking about the best possible names
>> for their function parameters.
>>
>>> Then, what makes you so sure he won't do this?
>>
>> What makes you so sure that if he does, he actually remembers to
>> change the functionality too?
>
> You are not making any sense here i am sorry.

That was the point. I was continuing the reasoning in your previous post.


More information about the Digitalmars-d mailing list