All you're doing is re-let(ing) the same name using the value with which it'd been previously 'let'. It has nothing to do with mutability...if you used a different name you'd see that nothing would happen to the 'first' mega value. Yes I'd say this is badly articulated Clojure...
Jim

On 02/04/13 20:09, larry google groups wrote:
If Clojure is suppose to emphasize immutability, why can I do this:

kiosks-clojure.core=> (let [
                 #_=> mega (+ 1 1)
                 #_=> mega (+ 1 mega)
                 #_=> mega (+ 1 mega)
                 #_=> mega (+ 1 mega)
                 #_=> mega (+ 1 mega)]
                 #_=> mega)
6

I might as well be writing PHP code.

Does anyone actually write Clojure code like this, or is it considered bad form?

--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to