[Haskell-cafe] Re: String vs ByteString
Brandon S Allbery KF8NH
allbery at ece.cmu.edu
Sat Aug 14 10:35:13 EDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
On 8/14/10 01:29 , Kevin Jardine wrote:
> I think that this kind of programming detail should be handled
> internally (even if necessary by switching automatically from UTF-8 to
> UTF-16 depending upon the language).
This is going to carry a heavy speed penalty.
> I'm using Haskell so that I can write high level code. In my view I
> should not have to care if the people using my application write in
> Farsi, Quechua or Tamil.
Ideally yes, but arguably the existing Unicode representations don't allow
this to be done nicely. (Of course, arguably there is no "nice" way to do
it; UTF-16 is the best you can do as a workable generic setting.)
brandon s. allbery [linux,solaris,freebsd,perl] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the Haskell-Cafe