On Mon, May 14, 2012 at 7:27 PM, Mark Engelberg <[email protected]>wrote:

> (def tree (function-that-produces-an-enormous-tree 2))
>

Isn't doing this at the top level bad form?


> So there are a couple examples of things that are harder to do when your
> REPL prints the values that are attached to variables.  But again, the real
> question here is, why does Clojurescript deviate on this point?  I know
> that Clojurescript doesn't exactly match Clojure, but shouldn't all
> deviations be done for a reason?
>
> --Mark


There are a few good reasons to not reify things like vars and namespaces
in ClojureScript - one of these is Google Closure Compiler.

Also I don't see how this isn't solved by modifying some habits.

(defn test-tree [] (function-that-produces-an-enormous-tree 2))
(time (test-tree))

David

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