The Case Against Autodecode

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Sun May 29 14:35:29 PDT 2016


On 05/12/2016 10:15 PM, Walter Bright wrote:
> On 5/12/2016 9:29 AM, Andrei Alexandrescu wrote:
>> I am as unclear about the problems of autodecoding as I am about the
> necessity
>> to remove curl. Whenever I ask I hear some arguments that work well
> emotionally
>> but are scant on reason and engineering. Maybe it's time to rehash
> them? I just
>> did so about curl, no solid argument seemed to come together. I'd be
> curious of
>> a crisp list of grievances about autodecoding. -- Andrei
> 
> Here are some that are not matters of opinion.
>
> 6. Autodecoding has two choices when encountering invalid code units -
> throw or produce an error dchar. Currently, it throws, meaning no
> algorithms using autodecode can be made nothrow.

There are more than 2 choices here, see the related discussion on
avoiding redundant unicode validation
https://issues.dlang.org/show_bug.cgi?id=14519#c32.


More information about the Digitalmars-d mailing list