Three Unlikely Successful Features of D

Walter Bright newshound2 at digitalmars.com
Tue Mar 20 16:10:59 PDT 2012


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?



More information about the Digitalmars-d mailing list