string is rarely useful as a function argument
Walter Bright
newshound2 at digitalmars.com
Wed Dec 28 22:53:11 PST 2011
On 12/28/2011 10:08 PM, Andrei Alexandrescu wrote:
> 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."
If that ever happens, I owe you a beer. Maybe two!
Maybe it's hubris, but I think D nails what a string type should be. I'm
extremely reluctant to mess with its success. It strikes the right balance
between aesthetics, efficiency and utility.
C++11 and C11 appear to have copied it.
More information about the Digitalmars-d
mailing list