Should we deprecate comma?

bearophile bearophileHUGS at lycos.com
Mon Mar 24 12:07:50 PDT 2014


Michel Fortin:

> struct()
> struct(a)
> struct(a, b)
> struct(a, b, c)
>
> Tuples are actually nameless structs, no?

That syntax is even longer/wordier :-)

auto arr = [struct(1, 2), struct(3, 4), struct(5, 6)];

Structs usually don't support slicing and concatenation. But they 
are indeed related structures.

Bye,
bearophile


More information about the Digitalmars-d mailing list