Wait, what? What is AliasSeq?
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 8 10:09:12 PDT 2015
On Wednesday, 8 July 2015 at 16:44:13 UTC, Jonathan M Davis wrote:
> On Wednesday, 8 July 2015 at 14:45:55 UTC, Xiaoxi wrote:
>> On Wednesday, 8 July 2015 at 14:18:20 UTC, Jonathan M Davis
>> wrote:
>>>
>>> And renaming TypeTuple to Aliases is just going to increase
>>> confusion.
>>>
>>> - Jonathan M Davis
>>
>> It's basically just __VA_ARGS__ on steroids, thus 'Arguments'
>> is good, there's precedence in C(Args).
>
> LOL. Then what about when you use it for _parameters_ rather
> than arguments? Or when you use it areas that have _nothing_ to
> do with functions - e.g.
>
> foreach(S; TypeTuple!(string, char[], wstring, dstring))
> {
> //...
> }
>
> Naming it Arguments gives the impression that it's specifically
> related to arguments, and that's just one small area that it
> gets used in. And that's part of what's so hard about naming
> it. It just does way too many things to name easily.
>
> - Jonathan M Davis
Not going to say if it is good or bad proposal, but your comment
is not strictly relevant - template arguments are also arguments
in D. It is exactly the term dlang.org grammar spec uses.
More information about the Digitalmars-d
mailing list