Re:Why use Clojure?
by catnaroek on Tuesday December 24, 2013 @09:00PM
(#6961913)
Immutability is not the whole story. There is also parametric polymorphism, algebraic data types and pattern matching (best case analysis tool ever), type classes for type constructors (not just types), etc.
[ Parent
| on HN ]
Re:Why use Clojure?
by wonderzombie on Wednesday December 25, 2013 @06:44PM
(#6964724)
Of course. That said, Clojure doesn't have those, given that it has a dynamic type system and destructuring instead of pattern matching (not as clean, IMHO), so a comparison to Haskell in this respect is less useful.
My point was that it is perfectly possible to be familiar with Haskell and find Clojure (and Lisps in general) puzzling.
On the other hand, I would be genuinely surprised if someone familiar with Haskell were unable to pick up ML, or vice versa.
If you want pattern matching, check out core.match