T[new]
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sun Aug 9 14:09:28 PDT 2009
bearophile wrote:
> Walter Bright:
>
> I like this general proposal, it sounds like something that can improve D a little. There are many other things that have to be improved in D, but baby steps are enough to go somewhere :-)
>
>> Slices will retain the old:
>> T[] slice;
>> syntax. Resizeable arrays will be declared as:
>> T[new] array;
>
> Such syntaxes have to be chosen wisely. I don't fully understand that syntax. And maybe I don't fully like it.
Why am I not surprised :o).
> I think the default (simpler) syntax has to be the most flexible and safer construct, that is resizable arrays. Slices can be seen as an optimization, so they can have a bit longer syntax.
Slices will remain ubiquitous, arrays probably not so much.
Andrei
More information about the Digitalmars-d
mailing list