template parameter list syntax
Carl Sturtivant
sturtivant at gmail.com
Sat Jan 19 22:52:25 UTC 2019
On Saturday, 19 January 2019 at 20:52:06 UTC, H. S. Teoh wrote:
>
> The template function declaration syntax is actually a
> shorthand for the so-called eponymous template. When you write:
>
> auto myFunc(Args...)(Args args) { }
>
> it's actually a shorthand for:
>
> template myFunc(Args...) {
> auto myFunc(Args args) { }
> }
>
> For the shorthand to introduce ! would be incongruous because
> the template declaration syntax doesn't use !.
>
>
> T
I'm asking why template declaration syntax doesn't use ! so it's
parallel to template use syntax which does use ! .
I was not talking about function templates as such.
More information about the Digitalmars-d
mailing list