Go and generic programming on reddit, also touches on D

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Sep 19 07:08:32 PDT 2011


On 9/19/11 6:25 AM, Steven Schveighoffer wrote:
> On Sun, 18 Sep 2011 15:34:16 -0400, Timon Gehr <timon.gehr at gmx.ch> wrote:
>
>> On 09/18/2011 08:28 PM, Andrei Alexandrescu wrote:
>>> That would allow us to e.g. switch from the
>>> pointer+length representation to the arguably better pointer+pointer
>>> representation with ease.
>>
>> In what way is that representation better?
>
> I agree, I don't see why the representation is inherently better. Some
> operations become higher performance (i.e. popFront), and some become
> worse (i.e. length). Most of the others are a wash.

That's where frequency of use comes into play. I'm thinking popFront 
would be used most often, and it touches two words.

Andrei


More information about the Digitalmars-d mailing list