On 1 September 2010 16:27, David Virebayre <dav.vire+hask...@gmail.com> wrote:
> 2010/9/1 Tako Schotanus <t...@codejive.org>:
>> As a Haskell noob I'm curious about this statement, is there something
>> intrinsically wrong with String?
>
> String is just a linked list of Char which are unicode code points;
> which is probably not the optimal way to store text.
> For intensive use of text it takes too much memory, and/or it's not
> fast enough.
>
> Sometimes I'd love if I could program using String and the compiler
> would automatically convert that to Text, or Bytestrings, but of
> course it's wishful thinking.

Well, there's OverloadedStrings for String literals...

But the problem with automagic conversion would be one of encoding for
Bytestrings at least.

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to