[Haskell-cafe] Re: String vs ByteString
Edward Z. Yang
ezyang at MIT.EDU
Sun Aug 15 01:39:18 EDT 2010
Excerpts from John Millikin's message of Sun Aug 15 01:32:51 -0400 2010:
> Also, despite the name, ByteString and Text are for separate purposes.
> ByteString is an efficient [Word8], Text is an efficient [Char] -- use
> ByteString for binary data, and Text for...text. Most mature languages
> have both types, though the choice of UTF-16 for Text is unusual.
Given that both Python, .NET, Java and Windows use UTF-16 for their Unicode
text representations, I cannot really agree with "unusual". :-)
Cheers,
Edward
More information about the Haskell-Cafe
mailing list