Better tuples
Eric Poggel
dnewsgroup at yage3d.net
Thu Jul 1 09:16:20 PDT 2010
On 6/30/2010 8:03 PM, bearophile wrote:
> Eric Poggel:
>> would it make sense to make struct instances and tuples the same thing?<
>
> It's a nice idea, but if all structs become tuples, and D needs to support separate compilation, then modules that define structs need to contain the compiled methods (instantiated templates) that implement all the features of Tuples. So to keep programs small I think it's better to keep structs simple, and define a Tuple with richer semantics.
>
> Bye,
> bearophile
That's a shame. I feel like this (along with functions and delgates
being different) is one of the areas where the complexity of the
language really shows itself. I really liked the proposals you
presented though.
More information about the Digitalmars-d
mailing list