Comma expression as tuple operator [was Tuples, C#, Java, language design]
bearophile
bearophileHUGS at lycos.com
Tue Dec 29 23:54:48 PST 2009
BCS:
> A though on the comma operator: if the comma operator were defined to give
> a tuple type and be implicitly castable to any suffix of it's self, then
> you could get both the comma expression usage that Walter wants as well as
> all the fun things that tuple expressions give.
D2 has enough warts now, so it's much better to not add some more. Languages must be tidy, when possible. It's often better to not have a feature that having a dirty one.
Bye,
bearophile
More information about the Digitalmars-d
mailing list