Pretty please: Named arguments

Bekenn leaveme at alone.com
Mon Feb 28 14:27:21 PST 2011


On 2/28/11 1:50 PM, Jonathan M Davis wrote:
> However, I consider them to
> be a big _problem_, not a feature - _especially_ the ability to rearrange the
> function arguments. All of a sudden you could have
>
> foo(4, 5);
> foo(x : 4, y : 5);
> foo(y : 5, X : 4);
>
> all making _exactly_ the same function call. That seem _very_ bug-prone and
> confusing to me.

Of those three calls, the highest potential for confusion exists with 
the first.  Admittedly, the third is of uncertain value.


More information about the Digitalmars-d mailing list