toString vs toUtf8???

Sean Kelly sean at f4.ca
Mon Dec 17 00:49:48 PST 2007


davidl wrote:
> 
> I really don't get why there was an argument about it.
> Obviously tango team chose a bad name. toUtf8 has nothing to do with 
> enforcing a string to utf8 encoded. Thus, toUtf8 is misleading.

How so?  If someone wants to return a string using a different encoding, 
they can use a different function name.  Given that D has "standardized" 
on Unicode, I think it's a fair assertion that the default encoding 
should be Unicode.


Sean



More information about the Digitalmars-d mailing list