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 <[email protected]> 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

Reply via email to