The Case Against Autodecode

Iakh via Digitalmars-d digitalmars-d at puremagic.com
Fri May 13 12:43:46 PDT 2016


On Friday, 13 May 2016 at 01:00:54 UTC, Walter Bright wrote:
> On 5/12/2016 5:47 PM, Jack Stouffer wrote:
>> D is much less popular now than was Python at the time, and 
>> Python 2 problems
>> were more straight forward than the auto-decoding problem.  
>> You'll need a very
>> clear migration path, years long deprecations, and automatic 
>> tools in order to
>> make the transition work, or else D's usage will be 
>> permanently damaged.
>
> I agree, if it is possible at all.

A plan:
1. Mark as deprecated places where auto-decoding used. I
think it's all "range" functions for string(front, popFront, 
back, ...).
Force using byChar & co.

2. Introduce new String type in Phobos.

3. After ages make immutable(char) ordinal array.

Is it OK? Profit?


More information about the Digitalmars-d mailing list