On 2011-07-22 03:29, Simen Kjaeraas wrote:
I agree that a shorter syntax for 2-tuples could be beneficial, and
certainly may make more people use it (also, the -> arrow is not
taken yet):

auto foo = AA([
"a" -> 1,
"b" -> 19,
"c" -> -3,
]);

Now that is a syntax I would like to see in D. This would be even better:

auto foo = "a" -> 1, "b" -> 19, "c" -> -3;

--
/Jacob Carlborg

Reply via email to