Challenge: write a really really small front() for UTF8

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Mar 24 09:31:43 PDT 2014


On 3/24/14, 2:02 AM, monarch_dodra wrote:
> On Sunday, 23 March 2014 at 21:23:18 UTC, Andrei Alexandrescu wrote:
>> Here's a baseline: http://goo.gl/91vIGc. Destroy!
>>
>> Andrei
>
> Before we roll this out, could we discuss a strategy/guideline in
> regards to detecting and handling invalid UTF sequences?

I think std.array.front should return the invalid dchar on error, and 
popFront should attempt to resync on error.

Andrei



More information about the Digitalmars-d mailing list