The Case Against Autodecode

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 2 06:09:16 PDT 2016


On 06/02/2016 09:05 AM, Steven Schveighoffer wrote:
> On 6/1/16 6:24 PM, Andrei Alexandrescu wrote:
>> On 06/01/2016 06:09 PM, ZombineDev wrote:
>
>>> Deprecating front, popFront and empty for narrow
>>> strings is what we are talking about here.
>>
>> That will not happen. Walter and I consider the cost excessive and the
>> benefit too small.
>
> If this doesn't happen, then all this push to change anything in Phobos
> is completely wasted effort.

Really? "Anything"?

> As long as arrays aren't treated like
> arrays, we will have to deal with auto-decoding.
>
> You can change string literals to be something other than arrays, and
> then we have a path forward. But as long as char[] is not an array, we
> have lost the battle of sanity.

Yeah, it's a miracle the language stays glued eh.

Your post is a prime example that this thread has lost the battle of 
sanity. I'll destroy you in person tonight.


Andrei


More information about the Digitalmars-d mailing list