[Haskell-cafe] Collections

Jens Fisseler jens.fisseler at FernUni-Hagen.de
Wed Jun 20 09:49:09 EDT 2007

On Tue, 19 Jun 2007, Andrew Coppin wrote:

> Maybe it's just a culture thing then... In your typical OOP language, you
> spend five minutes thinking "now, what collection type shall I use here?"
> before going on to actually write the code. In Haskell, you just go "OK, so
> I'll put a list here..."

I seriously doubt this.

You kind of mix two things, languages and libraries. Collections will most 
of the time be implemented as a library.

So, in order to use the appropriate collection type, you have to know 
you're standard library or know of other libraries available. Then, 
whenever you need an appropriate collection type, you look what's 
available. It's this way with Java, with C++ and *definitely* with 
Haskell, too.



More information about the Haskell-Cafe mailing list