4 ms·
Immutability is not the whole story. There is also parametric polymorphism, algebraic data types and pattern matching (best case analysis tool ever), type class
by catnaroek 13y ago
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.
- wonderzombie 13y agoOf 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.
- catnaroek 13y agoMy 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.
- dkersten 13y agoIf you want pattern matching, check out core.match
- catnaroek 13y agoWhere is the exhaustiveness checking?