The Case Against Autodecode
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jun 2 15:23:19 PDT 2016
On 06/02/2016 05:58 PM, Walter Bright wrote:
> On 6/2/2016 1:27 PM, Andrei Alexandrescu wrote:
>> The lambda returns bool. -- Andrei
>
> Yes, I was wrong about that. But the point still stands with:
>
> > * s.balancedParens('〈', '〉') works only with autodecoding.
> > * s.canFind('ö') works only with autodecoding. It returns always
> false without.
>
> Can be made to work without autodecoding.
By special casing? Perhaps. I seem to recall though that one major issue
with autodecoding was that it special-cases certain algorithms. So you'd
need to go through all of std.algorithm and make sure you can
special-case your way out of situations that work today.
Andrei
More information about the Digitalmars-d
mailing list