On 03/20/2012 04:10 PM, Walter Bright wrote:
On 3/20/2012 2:51 PM, Andrei Alexandrescu wrote:
On 3/20/12 4:43 PM, Walter Bright wrote:
On 3/20/2012 12:02 PM, Andrei Alexandrescu wrote:
What are your faves? I have a few in mind, but wouldn't want to
influence answers.

Although array slices have been in D nearly since the beginning, I had
little idea they would become so darn useful and foundational. They
originated from an idea by Jan Knepper.

The unexpected utility of them explains why they haven't appeared in
other languages (yet).

Go has slices. (Unlike D slices, they include capacity.)

Can you, in Go:

1. slice a static string?
2. slice any arbitrary data?


3. have arbitrary overlapping slices?

OTOH slices in D do have a capacity in some regards in that the GC can allow in place extend.

Reply via email to