Dealing with Autodecode

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 2 07:29:28 PDT 2016


On 06/02/2016 09:34 AM, Adam D. Ruppe wrote:
> On Thursday, 2 June 2016 at 04:42:49 UTC, Walter Bright wrote:
>> Andrei is in favor of fixing Phobos so it does not depend on autodecode.
>
> Putting the autodecode functions on a compiler switch (with -version) is
> the most straightforward way to achieve that.
>
> We'd have a transition period where people can keep the existing
> behavior or throw the switch and get compile errors - with a dead-simple
> "just add .byCodePoint on this line" fix - to migrate their code.

That is not going to happen.

> It's one thing to make a mistake. Everyone does that sometimes, and
> nobody is born knowing complex issues. What matters is if you're willing
> to learn new information and correct your errors.

The real ticket out of this is RCStr. It solves a major problem in the 
language (compulsive GC) and also a minor occasional annoyance 
(autodecoding).


Andrei



More information about the Digitalmars-d mailing list