Should we deprecate comma?
bearophile
bearophile at HUGS
Mon Mar 24 09:57:07 PDT 2014
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();
Bye,
bearophile
More information about the Digitalmars-d
mailing list