[Haskell-cafe] Array, Vector, Bytestring

Artyom Kazak yom at artyom.me
Tue Jun 4 10:57:31 CEST 2013


Oops.

Ben Gamari <bgamari.foss at gmail.com> писал(а) в своём письме Tue, 04 Jun
2013 04:41:53 +0300:

> To be perfectly clear, ByteString and Text target much different
> use-cases and are hardly interchangeable. While ByteString is, as the
> name suggests, a string of bytes, Text is a string of characters in a
> Unicode encoding. When you are talking about unstructured binary data,
> you should most certainly be using ByteString.

Why create a special case? Right now you should use ByteString, yes, but I
wish I could just use a generic array of Word8.



More information about the Haskell-Cafe mailing list