The Case Against Autodecode

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 2 14:06:25 PDT 2016


On 6/2/16 5:01 PM, ag0aep6g wrote:
> On 06/02/2016 10:50 PM, Andrei Alexandrescu wrote:
>> It does not fall apart for code points.
>
> Yes it does. You've been given plenty examples where it falls apart.

There weren't any.

> Your answer to that was that it operates on code points, not graphemes.

That is correct.

> Well, duh. Comparing UTF-8 code units against each other works, too.
> That's not an argument for doing that by default.

Nope, that's a radically different matter. As the examples show, the 
examples would be entirely meaningless at code unit level.


Andrei



More information about the Digitalmars-d mailing list