Comma expressions must die [Was: Reddit: why aren't people using D?]

Adam D. Ruppe destructionator at gmail.com
Thu Jul 23 15:41:15 PDT 2009


On Fri, Jul 24, 2009 at 12:03:37AM +0200, Michiel Helvensteijn wrote:
> Would you look at this page and give me your opinion?

Looking at it quickly, the big difference seems to be you leave the tuple
word off, and use them in more places.

Is

Tuple!(int, bool) A = tuple(a, b)

really that much worse than:

(int, bool) A = (a, b)

?

Better yet, of course is:

auto A = tuple(a, b);


By keeping the tuple word there, it is no longer conflicting with my C
expectations, but seems to be just as useful as your proposal.



-- 
Adam D. Ruppe
http://arsdnet.net



More information about the Digitalmars-d mailing list