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

bearophile bearophileHUGS at lycos.com
Mon Jul 27 05:37:26 PDT 2009


Adam D. Ruppe:

> Why is dedicated syntax for comma expressions better than commaExpr(...)?
>What do you propose we do about the commas in loops? Breaking them would be a pretty big change to the C folks.<

Disallowing bad usages of commas is a starting point. for() can become a special case. Handy syntax for tuple unpacking is useful in many situations, look at Python code.

Bye,
bearophile
(Late answer, sorry, I was away)



More information about the Digitalmars-d mailing list