template parameter list syntax
Paul Backus
snarwin at gmail.com
Sat Jan 19 17:59:48 UTC 2019
On Saturday, 19 January 2019 at 16:59:03 UTC, Carl Sturtivant
wrote:
> [...]
>
> In many languages the way parameters for functions are
> syntactically specified in a function definition mirrors the
> way arguments are supplied when the function is called, so that
> the syntax of the definition suggests the syntax of its use.
>
> D doesn't do this with templates. Why?
Walter Bright explains some of the reasoning behind D's
implementation of templates, including the syntax, in his article
"Templates Revisited":
https://dlang.org/articles/templates-revisited.html
More information about the Digitalmars-d
mailing list