String implementations

Walter Bright newshound1 at digitalmars.com
Sun Jan 20 03:10:03 PST 2008


James Dennett wrote:
> (On the other hand, D is weak here
> because it identifies UTF8 strings with arrays of char, but char
> doesn't hold a UTF8 character.  I can't imagine persuading Walter
> that this is a horrible error is going to work though.)

I've actually done considerable work with UTF-8, both in C++ and D. D's 
method of dealing with it works out very well (and very naturally). This 
is why you'll have a hard time persuading me otherwise <g>.

Note that C++0x is doing things similarly:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2249.html



More information about the Digitalmars-d mailing list