The demise of T[new]

BCS none at anon.com
Mon Oct 19 10:10:28 PDT 2009


Hello Yigal,

> I think that Arrays and AAs need to be removed from the language. I
> prefer to have a collections framework as part of Phobos without
> special cases in the language for specific containers.

If it can be assured that all the current array ops will get inlined is all 
cases and can result in identical asm I'd be willing to consider this.

> List!(Foo) list = new Array!(Foo); // instead of Foo[new]

For me to not dislike the idea you would also need to find a cleaner syntax.





More information about the Digitalmars-d mailing list