Unpack Variadic Args?
H. S. Teoh
hsteoh at quickfur.ath.cx
Thu Feb 13 17:52:21 UTC 2020
On Thu, Feb 13, 2020 at 12:32:01PM -0500, Steven Schveighoffer via Digitalmars-d-learn wrote:
[...]
> 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!
[...]
Yes, yes, and yes! Anonymous templates would make std.traits and
std.meta *much* easier to use.
T
--
"I'm running Windows '98." "Yes." "My computer isn't working now." "Yes, you already said that." -- User-Friendly
More information about the Digitalmars-d-learn
mailing list