Regarding your def question, it never makes sense to use def inside of
a function.
In Javascript, you might do this:
{
var a = 1;
var b = 2;
...some statements that might use a and b...
}
Nothing outside of the curly braces can use those definitions of a and
b. The let form is a similar
thing;
(let [a 1
b 2]
(... some stuff that might use a and b...)
)
Nothing past that last closing parenthesis (the one that matches the
open parenthesis before the "let") knows about the definitions of a
and b. I think the term "form" just means "stuff between
parentheses".
Bill Smith
Austin, TX
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en