VLERange: a range in between BidirectionalRange and RandomAccessRange
Don
nospam at nospam.com
Wed Jan 12 11:28:48 PST 2011
Michel Fortin wrote:
> On 2011-01-11 20:28:26 -0500, Steven Wawryk <stevenw at acres.com.au> said:
>> Why not choose which of these abstractions is most appropriate in a
>> given situation instead of trying to shoe-horn both concepts into a
>> single abstraction, and provide for easy conversion between them?
>> When character representation is the primary requirement then make it
>> a bidirectional range of code points. When storage representation and
>> random access is required then make it a random access range of code
>> units.
>
> I think you're right. The need for a new concept isn't that great, and
> it gets complicated really fast.
I think the only problem that we really have, is that "char[]",
"dchar[]" implies that code points is always the appropriate level of
abstraction.
More information about the Digitalmars-d
mailing list