DIP19: Remove comma operator from D and provision better syntactic support for tuples

Jacob Carlborg doob at me.com
Wed Sep 26 23:17:16 PDT 2012


On 2012-09-27 00:38, bearophile wrote:

> I have appreciated named fields of D tuples since the beginning, I have
> found them quite handy. With them sometimes you don't need to unpack a
> tuple, you can just access its fields with a nice name, avoiding to move
> around more than one variable.

If you could do something like this:

auto x, y = tuple(1, 2);

Wouldn't that be an acceptable solution instead?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list