Comma expression as tuple operator [was Tuples, C#, Java, language design]
grauzone
none at example.net
Wed Dec 30 00:06:10 PST 2009
bearophile wrote:
> 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.
I think in this case, it's more about cleaning up and polishing, than
adding "warts".
The big danger is, that this may require incompatible language changes,
which won't be possible anymore after D2. D3? Anyone who talks about D3
must be kidding.
> Bye,
> bearophile
More information about the Digitalmars-d
mailing list