The Case Against Autodecode

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 2 06:34:50 PDT 2016


On 02.06.2016 15:09, Andrei Alexandrescu wrote:
>>
>>
>> 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.
> ...

It's not a language problem. Just avoid Phobos.

> Your post is a prime example that this thread has lost the battle of
> sanity.

He is just saying that the fundamental reason why autodecoding is bad is 
that it denies that T[] is an array for any T.


More information about the Digitalmars-d mailing list