Re:Python vs Clojure
by bretthoerner on Wednesday October 14, 2009 @08:19PM
(#882443)
> you would never (def x 1) and then (def x 5) in a running program
Right, I understand. It was the way the author stated 'x never changes' that made me believe he doesn't understand the difference between binding a name and changing a value.
A more meaningful objection is that you can shadow a local with a different local in Clojure, like this:
which is essentially what is being done in the Python code.I don't think there are many strong arguments to make in favor of Clojure over Python other than concurrency and macros, and maybe the immutable hashes.