On Feb 22, 8:51 pm, Peter T <[email protected]> wrote:
 > I'm just wondering why certain forms, like let, natively allow for
> multiple body/expression argument forms. That is, let seems to
> natively allow for side effects.

Well, firstly, limiting the body of let to one expression doesn't
prevent side-effects. Secondly, Clojure is not a pure functional
language, and there are plenty of functions in the core API that have
side effects, such as swap!, alter, send, etc.

Clojure does place an emphasis on avoiding side-effects where
possible, but the reason seems more to do with enabling greater
concurrency than preserving functional purity.

- James

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

Reply via email to