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

Reply via email to