First Impressions

Walter Bright newshound at digitalmars.com
Sun Oct 1 11:16:06 PDT 2006


Sean Kelly wrote:
>> 3) no UTF conversion or transliteration
>>
>> 4) C++ source text encoding is implementation-defined, so no using UTF 
>> characters in source code (have to use \u or \U notation)
> 
> Personally, I see this as a language deficiency more than a deficiency 
> in std::string.

That's why the proposals to fix it are rewriting some of the *core* C++ 
language.

> std::string is really just a vector with some search 
> capabilities thrown in.

Another difficulty with it is it doesn't have a connection with 
std::vector<char>.

> It's not that great for a string class, but it 
> works well enough as a general sequence container.  And it will work a 
> tad better once they impose the came data contiguity guarantee that 
> vector has (I believe that's one of the issues set to be resolved for 0x).
> 
> Overall, I do agree with you.  Though I suppose that's obvious as I'm a 
> former C++ advocate who now uses D quite a bit :-)

:-)



More information about the Digitalmars-d mailing list