string is rarely useful as a function argument

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Dec 28 22:08:04 PST 2011


On 12/28/11 11:36 PM, Walter Bright wrote:
> On 12/28/2011 8:32 PM, Adam D. Ruppe wrote:
>> On Thursday, 29 December 2011 at 04:17:37 UTC, Andrei Alexandrescu wrote:
>>> If we have two facilities (string and e.g. String) we've lost. We'd
>>> need to
>>> slowly change the built-in string type.
>>
>> Have you actually tried to do it?
>
> I've seen the damage done in C++ with multiple string types. Being able
> to convert from one to the other doesn't help much.

This.

The only solution is to explain Walter no other programmer in the world 
codes UTF like him. Really. I emulate that sometimes (learned from him) 
but I see code from hundreds of people day in and day out - it's never 
like his.

Once we convince him, he'll be like "ah, I see what you mean. Requiring 
.rep is awesome. Let's do it."


Andrei


More information about the Digitalmars-d mailing list