Should we deprecate comma?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Mar 24 12:48:58 PDT 2014


On 3/24/14, 9:57 AM, bearophile wrote:
> Andrei Alexandrescu:
>
>>> Look at some of the syntaxes here:
>>> http://wiki.dlang.org/DIP32#Use_case_of_uniform_tuple_syntax
>>>
>>> One of the syntaxes:
>>>
>>> @{}
>>> @{a}
>>> @{a, b}
>>> @{a, b, c}
>>
>> WTF???
>>
>> tuple()
>> tuple(a)
>> tuple(a, b)
>> tuple(a, b, c)
>>
>>
>> Andrei
>
> So you are saying you want to support a syntax like this?
>
> tuple(a, b, c) = myFunc();

That would be a different function but same syntax. In fact for safety I 
favor myFunc().scatter(a, b, c) -- Andrei



More information about the Digitalmars-d mailing list