Array literals
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Oct 16 07:34:50 PDT 2008
bearophile wrote:
> Andrei Alexandrescu:
>> Yah Walter does plan to make "string literals" dynamically-sized by
>> default, but fixed-sized on demand (if you specify the appropriate
>> receiver type, which in turn asks the T[auto] question). In
>> related news, he wants to legitimize statically-typed arrays by
>> making them true value types.
>
> Good. But why not make all array literals dynamically-sized by
> default , but fixed-sized on demand? Isn't that more symmetric (so
> the D programmer has to remember less special cased rules == simpler
> language)?
I agree. Walter didn't like that though, but I don't remember his
argument. I'll defer to him.
Andrei
More information about the Digitalmars-d
mailing list