One of the big features of Clojure is you can't changes variables after they
are initialized - in java terms, they are all final.  However, when the let
exits, the buffer variable is out of scope, so the StringBuilder object can
be gc'd if that's what you're concerned about.  Inside the let, you can have
another let, with a variable even with the same name, but it's really a
different variable and only active within that inner scope.  Note, = is a
function that tests equality, like == or .equals() in java, it's not
assignment.  If you explain more about what you want to do, someone might be
able to offer more advice.

-Mike
-- 
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

Reply via email to