As discussed in DConf2015: Python-like keyword arguments
Idan Arye via Digitalmars-d
digitalmars-d at puremagic.com
Sun May 31 06:35:15 PDT 2015
On Sunday, 31 May 2015 at 04:08:33 UTC, ketmar wrote:
> and this:
> void test(A...) (A a) {
> import std.stdio;
> foreach (auto t; a) writeln(t);
> }
>
> void main () {
> test(x: 33.3, z: 44.4, a: 9999, 7777, d:"Yehaw");
> }
I like the idea of a template-variadic keyword arguments, but
does it have to have the exact same syntax as template-variadic
positional arguments? What will happen to functions that expect
positional variadic arguments and get invoked with keyword
variadic arguments instead?
More information about the Digitalmars-d
mailing list