Tuple literal syntax

Justin Johansson no at spam.com
Thu Oct 7 06:34:19 PDT 2010


On 8/10/2010 12:23 AM, Ellery Newcomer wrote:
> I might be missing something, but how does this proposal get around the
> ambiguity in
>
> (a,b,c)[0]
>
> ?
>
> Currently, it's valid C syntax and valid D syntax. In your proposal it
> would be valid tuple syntax too.

Sorry Ellery but you, as others, are also focusing on syntax and not
a semantic foundation for what tuples are.  I note that bearophile
makes similar points about the meaning of tuples in a latter post.

Without understanding what the meaning of tuples is and what they
might be good for, it (imho) doesn't make sense to enter into
syntactic arguments.

Justin



More information about the Digitalmars-d mailing list