Bill Baxter, el 1 de abril a las 05:22 me escribiste: > Right. In my ideal world I could use tuples like this: > > (int,float) a; > > a = returns_tuple(); > > a[0] = 2; > a[1] = 3.4; > > (int,float) z = returns_tuple(); > > (int x, float y) = returns_tuple(); > > auto tup = (2, 3.4); > > takes_int_and_float(unpack!(tup)); > > I think experience with tuples in Python and ML (and probably > elsewhere -- heck even D) shows that tuples are incredibly useful. So > useful that they deserve better syntax than Tuple!(...).
Agree. They should be first class citizen as dynamic arrays or hashes. -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ ---------------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ----------------------------------------------------------------------------