Should we deprecate comma?

Joseph Cassman jc7919 at outlook.com
Mon Mar 24 14:03:28 PDT 2014


On Monday, 24 March 2014 at 20:04:23 UTC, deadalnix wrote:
> On Monday, 24 March 2014 at 18:58:52 UTC, Michel Fortin wrote:
>> On 2014-03-24 16:42:59 +0000, Andrei Alexandrescu 
>> <SeeWebsiteForEmail at erdani.org> said:
>>
>>> tuple()
>>> tuple(a)
>>> tuple(a, b)
>>> tuple(a, b, c)
>>
>> struct()
>> struct(a)
>> struct(a, b)
>> struct(a, b, c)
>>
>> Tuples are actually nameless structs, no?
>
> This whole point is that this part doesn't need any language 
> semantic addition.
>
> An unpacking syntax is a useful addition, and not especially 
> related to tuples, as you could unpack arrays for instance.

And would also avoid memory allocation where possible.
At least as far as unpacking the results of a function are 
concerned.

Joseph


More information about the Digitalmars-d mailing list