News for hackers. Stuff that matters.
Re:Google Go: The Good, the Bad, and the Meh by FreeFull on Thursday February 14, 2013 @12:59PM (#5220767)
The only thing that elevates lists above other data structures in Haskell syntax-wise is the "" and [] sugar for constructing them. Haskell's type system allows you very easily to construct your own data types. For example, an unbalanced binary tree would be defined as

data Tree a = Leaf a | Branch a (Tree a) (Tree a) deriving (Eq, Show)

I admit that the easiest way to construct a hashmap, using fromList [(key,value),(otherkey,othervalue)], isn't as pretty as Clojure's syntax.

There are no comments on this comment yet.