On Friday, 31 May 2013 at 04:49:41 UTC, deadalnix wrote:
On Friday, 31 May 2013 at 03:07:22 UTC, nazriel wrote:
Now this:

   auto #(x, y) = foo();
   #(int x1, string y1) = foo();

   #(int, string) foo() {

       #(int tmp, string tmp2) = #(3, "dsa");

       return #(42, "dsa");
   }


This have the advantage of not having issue with one element tuples.

My 2 cents :))

bearophile what do you think?

I also do agree that the 3rd one is probably the best.

Smalltalk (Also Objective C) went this way long ago, and it worked. http://en.wikipedia.org/wiki/Smalltalk#Literals

Reply via email to