Should we deprecate comma?

deadalnix deadalnix at gmail.com
Mon Mar 24 13:04:20 PDT 2014


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.


More information about the Digitalmars-d mailing list