On Thu, Oct 18, 2012 at 3:32 PM, David Nolen <[email protected]> wrote: > On Thu, Oct 18, 2012 at 4:22 PM, Grant Rettke <[email protected]> wrote: >> >> >> When you use def inside a defn is it equivalent to a let binding like >> this? >> >> (defn foo [] >> (def a 1) >> (println a)) >> >> (defn foo [] >> ((fn [a] >> (println a)) 1)) > > > Not equivalent.
I see. To what is it equivalent? -- 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
