[Haskell-cafe] Array, Vector, Bytestring

Tom Ellis tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Tue Jun 4 17:39:24 CEST 2013


On Tue, Jun 04, 2013 at 04:01:37PM +0200, Peter Simons wrote:
>  > How is this a problem?
>  >
>  > If you're representing text, use 'text'.
>  > If you're representing a string of bytes, use 'bytestring'.
>  > If you want an "array" of values, think c++ and use 'vector'.
> 
> the problem is that all those packages implement the exact same data
> type from scratch, instead of re-using an implementation of a
> general-purpose array internally. That is hardly desirable, nor is it
> necessary.

Just to clarify for those on the sidelines, the issue is duplication of
implementation details, rather than duplication of functionality?

Tom



More information about the Haskell-Cafe mailing list