The Case Against Autodecode

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 2 15:44:35 PDT 2016


On 03.06.2016 00:23, Andrei Alexandrescu wrote:
> 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.

The major issue is that it special cases when there's different, more 
natural semantics available.


More information about the Digitalmars-d mailing list