Why is there no named parameter support?
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jun 9 02:56:33 PDT 2015
On Tue, 09 Jun 2015 09:50:15 +0000, Marc Schütz wrote:
> 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.
they have to affect mangling for templates, though, if we want the
ability to forward calls "as is" in templates. but i believe that this
can be dealt with later -- i.e. in another PR.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150609/dd7598dc/attachment.sig>
More information about the Digitalmars-d-learn
mailing list