DIP19: Remove comma operator from D and provision better syntactic support for tuples
Piotr Szturmaj
bncrbme at jadamspam.pl
Wed Sep 26 16:03:28 PDT 2012
Jonathan M Davis wrote:
> It sounds to me like the reason that structural typing is needed is because
> Tuple allows you to name its fields, which I've always thought was a bad idea,
> and which a built-in tuple definitely wouldn't do. If you couldn't name its
> fields, then any Tuple containing the same sequence of types would be the same
> type. So, the problem is caused by a feature that built-in tuples wouldn't
> even have.
Exactly my PoV. I think that "tuples with named fields" should be
anonymous structs and pure tuples shouldn't have named fields.
More information about the Digitalmars-d
mailing list