Why is there no named parameter support?

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 9 02:01:48 PDT 2015


On Mon, 08 Jun 2015 22:58:10 -0700, Jonathan M Davis via
Digitalmars-d-learn wrote:

> Personally, I hate how named arguments affect the API (e.g. the names of
> the parameters suddenly become part of the API), and for the most part,
> the only times that they're worth much is when you have so many function
> parameters that you should be creating structs to hold those values
> anyway. I don't want them in the language, and I'm very glad that Walter
> is against them, so I didn't feel the need to try and remember all he
> said about why they were a bad idea.

the funny thing is that named arguments can coexist with unnamed 
arguments peacefully.
-------------- 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/84c2535c/attachment.sig>


More information about the Digitalmars-d-learn mailing list