Clojure makes some things that are hard to do in other languages much easier.
I once heard it put that "Functional programming makes all problems equally hard." When taken figuratively, it does make a lot of sense: the things that are hard to do functionally tend to be things that are easy to do procedurally (e.g. UI stuff -- the code obviously, not the design).
Re:Why Clojure?
by swannodette on Wednesday August 18, 2010 @10:31PM
(#1616341)
I don't think you'll find that UI programming in Clojure is all that difficult. Here's the beginning of a relatively involved RTS game in Clojure: http://groups.google.com/group/clojure/browse_thread/thread/....
Absolutely, but these aren't ends of the same stick. You can have immutable but eager, which is simpler to model mentally a lot of the time, at least for me. Simon Peyton-Jones has said that perhaps Haskell should have made eager evaluation the default and I'm inclined to agree that lazy evaluation is very powerful but maybe not a good default.
3. Sure but no more than Haskell or any other terse FP lang, Scala included
True, although the baseline for a lot of Clojure code is higher, IMO.
4. defrecord works wonders
Maybe so. I haven't really gotten my head entirely around the options for datatypes in CLJ yet.
5. It takes me hours to do things in Ruby that I could dash out in Clojure.
It's true. Clojure makes some things that are hard to do in other languages much easier. Programmers are different, so we shouldn't expect one set of tools to suit us all equally well.