News for hackers. Stuff that matters.
Re:Why the world needs Haskell by chongli on Wednesday July 10, 2013 @08:29AM (#6019021)
>inability to make a heterogeneous list or even have tuples of different kind in it

Neither of these is true. Both heterogeneous lists and tuples (indeed any data structure) are possible in Haskell; all thanks to algebraic data types.

Re:Why the world needs Haskell by eli_gottlieb on Wednesday July 10, 2013 @08:39AM (#6019063)
Extensible heterogeneous lists are hard in Haskell, but that's because Haskell chooses to encode extensibility through type-classes rather than data heterogeneity.

It could very well be that most programmers just don't like programming that way, and thus Haskell sucks.

Re:Why the world needs Haskell by chongli on Wednesday July 10, 2013 @08:45AM (#6019090)
Not really. Just make your types instances of Typeable and then store them in a list of Dynamics. This gives you dynamic typing for those exceptionally rare occasions when you really need it.

Frankly, from my experience with dynamically typed languages such as Clojure few people actually make heterogeneous lists and vectors beyond a handful of elements; a use case which is covered nicely by Haskell's tuples. Long hetereogeneous lists and vectors are not particularly useful because they cannot be reduced/folded -- unless your reducing function accounts for all the different types but then why not use an algebraic data type with pattern matching?

Re:Why the world needs Haskell by dschiptsov on Wednesday July 10, 2013 @10:34AM (#6019891)
Good points about folding and pattern matching on algebraic types. Thanks.

Of course, there is TYPECASE in CL and some similar macro in Clojure, but Haskell's pattern-matching syntax is more concise.