Why is there no named parameter support?

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 9 02:50:15 PDT 2015


On Tuesday, 9 June 2015 at 05:39:06 UTC, Timothee Cour wrote:
> I'd be very interested in reading more about those reasons 
> beyond FUD.
> The arguments in favor have been repeated many times over, and 
> the only
> argument against that I've heard ('overloading and named 
> arguments do not
> play well together') doesn't seem valid, given the precedent in 
> nim.

The only problems I can think of is if they affect name mangling, 
because then you would need to specify the names on each call. As 
long as they are optional syntax sugar, like in ketmar's POC 
implementation, they will probably work well.


More information about the Digitalmars-d-learn mailing list