My Issues with Slices and AAs

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Mar 2 07:28:38 PST 2012


On 3/2/12 7:33 AM, Kevin Cox wrote:
[snip]
> In, conclusion. (Tl:Dr) slices and AAs do not allow polymorphism and
> therefore are decreasing the power and flexibility of D.

Slices are primitive, concrete components that are close to the metal 
and are best for implementing abstractions, not defining them. You can 
always build and use abstract interfaces (that may or may not use slices 
internally). But at a point the turtles must end, and that's where the 
slices are.

Andrei



More information about the Digitalmars-d mailing list