Pretty please: Named arguments

Bekenn leaveme at alone.com
Wed Mar 2 01:58:10 PST 2011


On 3/2/2011 1:34 AM, Max Samukha wrote:
> I am not against named arguments. What I wanted to say is that
> writef(formatstr: "...", ) does not make the code more readable.

Right, agreed.  This is one of the "not helpful" cases, where you simply 
don't use named arguments.  I'd expect (and hope for) most function 
calls to fall into that category.

> Also, I
> shudder at the thought that the compiler guys may stop working on the
> toolchain issues and rush to implement named arguments instead.

I'm only just becoming aware of the scope of the toolchain issues, so 
I'm not really qualified to comment on that.  This doesn't have to go to 
the front of the queue, but it'd be nice to see it scheduled for D2.


More information about the Digitalmars-d mailing list