Tuple literal syntax

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Oct 7 07:56:12 PDT 2010


On 10/7/10 7:23 CDT, Justin Johansson wrote:
> On 7/10/2010 5:04 PM, Walter Bright wrote:
>> There have been a couple of looong threads about tuples:
>>
>> http://www.digitalmars.com/d/archives/digitalmars/D/Reddit_why_aren_t_people_using_D_93528.html
>>
>>
>> http://www.digitalmars.com/d/archives/digitalmars/D/Should_the_comma_operator_be_removed_in_D2_101321.html
>>
>>
>> A lot of it foundered on what the syntax for tuple literals should be.
>> The top of the list is simply enclosing them in ( ). The problem with
>> this is
>
> Walter, please define exactly what a tuple is as being, both
> in the context of your post and (presumably) in the D type system.
>
> Without a precise definition of exactly what a tuple is,
> your post will at best elucidate responses that also lack a
> precise understanding of a tuple is (supposed to be).
>
> There are already a number of responses to your post that focus
> on syntax and without any semantic foundation.

Wise words! It was exactly what I protested against. It discusses syntax 
without attacking any of the actual issues.

Andrei


More information about the Digitalmars-d mailing list