On 05/30/2013 10:28 PM, bearophile wrote:
Timon Gehr:

x, string y := awesomeFunction();

auto (x, string y) = awesomeFunction();

(There is a pull request for that iirc.)

At this point I suggest to not add that patch to D because tuples need a
better rounded design.


I think there is no chance to get a decent design without breaking (real) code.

Using the last syntax suggested today that becomes:

t{auto x, string y} = awesomeFunction();

Bye,
bearophile

Frankly, I don't know who would come up with such a wacky construct when designing a language from scratch. I don't think language features that suffer from bad language evolution are worth adding.

Reply via email to