Changing the behavior of the comma operator
bearophile
bearophileHUGS at lycos.com
Tue Mar 25 13:46:23 PDT 2014
ixid:
> Does this also mean a proper tuple syntax on a par with Go's is
> going to wait for five years? That seems too long for what
> should be a major feature and would suggest it should be done
> with something other than the comma operator.
I think commas should not be used in ways that have a different
semantics in C. So I think D tuples should have a syntax that
uses comma operator like that.
In the precedent thread Andrei has shown a ugly syntax to manage
tuples.
Bye,
bearophile
More information about the Digitalmars-d
mailing list