On Sunday, 24 January 2016 at 02:51:43 UTC, Jonathan M Davis
wrote:
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
To be pedantic, this would be adding named arguments, not named
parameters. The parameters are already named, but mixing up
arguments and parameters is a common mistake to make, and folks
do frequently talk about named parameters with regards to this
sort of feature.
To be even more pedantic it is usually called formal and active
parameters:
void f(int a) // formal parameter
f(3) // actual parameter