Unpack Variadic Args?
Steven Schveighoffer
schveiguy at gmail.com
Thu Feb 13 17:32:01 UTC 2020
On 2/13/20 12:24 PM, Steven Schveighoffer wrote:
> But this means you have an additional function call (which could of
> course be inlined).
And I might add, an additional requirement to declare some other
template (one of the huge drawbacks of std.meta, IMO).
Some syntax like expr(someTuple)... would be really cool to have in D.
Or something like arg => expr syntax for templates might be useful:
f(staticMap!(!a => foo(a), args)); // look ma, anonymous template!
-Steve
More information about the Digitalmars-d-learn
mailing list