VLERange: a range in between BidirectionalRange and RandomAccessRange

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Jan 16 10:06:16 PST 2011


On 1/15/11 9:25 PM, Jonathan M Davis wrote:
> Considering that strings are already dealt with specially in order to have an
> element of dchar, I wouldn't think that it would be all that distruptive to make
> it so that they had an element type of Grapheme instead. Wouldn't that then fix
> all of std.algorithm and the like without really disrupting anything?

It would make everything related a lot (a TON) slower, and it would 
break all client code that uses dchar as the element type, or is 
otherwise unprepared to use Graphemes explicitly. There is no question 
there will be disruption.

Andrei


More information about the Digitalmars-d mailing list