template parameter list syntax
Carl Sturtivant
sturtivant at gmail.com
Sat Jan 19 20:06:36 UTC 2019
On Saturday, 19 January 2019 at 17:59:48 UTC, Paul Backus wrote:
> 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
I don't see anything in this document that answers my design
question. Do you?
More information about the Digitalmars-d
mailing list