Tuple DIP
ixid
nuaccount at gmail.com
Thu Mar 15 10:45:50 UTC 2018
On Friday, 12 January 2018 at 22:44:48 UTC, Timon Gehr wrote:
> auto (a, b) = (1, 2);
For the assignment and unpacking grammar why not adopt the more
streamlined Go syntax?
auto a, b = 1, 2; // Creates two new variables with the values 1
and 2
auto c, d = 1, (2,3); // A normal variable and a tuple
This would seem a lot clearer than:
auto (a, b) = (1,2);
auto (c, d) = (1, (2,3));
More information about the Digitalmars-d
mailing list