The stately := operator feature proposal

bearophile bearophileHUGS at lycos.com
Thu May 30 13:28:45 PDT 2013


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.

Using the last syntax suggested today that becomes:

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

Bye,
bearophile


More information about the Digitalmars-d mailing list