Also, I want to add that type declarations should be changed from statements to expressions so that we could do:
auto tup = (3, "hello");
(int num, string s) = tup; // num == 3, s == "hello"

+1.

or

int num;
string s;
auto tup = (3, "hello");

(num, s) = tup;

or like x++ containers http://msdn.microsoft.com/en-us/library/aa874816.aspx

auto tup = [3, "hello"];

[num, s] = tup;

In general it's very useful.

Reply via email to