DIP 88: Simple form of named parameters

jmh530 via Digitalmars-d digitalmars-d at puremagic.com
Sat Jan 23 21:14:17 PST 2016


On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg 
wrote:
> This is mostly to prevent ugly hacks like Flag [1].
>
> http://wiki.dlang.org/DIP88
>
> [1] https://dlang.org/phobos/std_typecons.html#.Flag

Someone on another thread made a comment that it wasn't clear 
what : does in D. I suspect this won't help. I'm more used to 
equals from R than : in C# and Swift, though I'm not sure that 
really matters much.

There is a good discussion of named parameters here (particularly 
amon's answer):
http://programmers.stackexchange.com/questions/219593/why-do-many-languages-not-support-named-parameters


More information about the Digitalmars-d mailing list