You don't need (and shouldn't use) eval for this:

@(resolve (symbol "age")))

Stu

Have found what I am trying to do eval

I am working through the Halloway book, which doesn't seem to have
eval in the index, so I probably should excuse myself my ignorance.

Is there much a performance impact of using eval,as presumably the
compiler can't do much until runtime? Or is the idea of functional
languages to delay as much until runtime as possible anyway?


On Feb 24, 11:16 am, Quzanti <quza...@googlemail.com> wrote:
I am sure this is really obvious but as I don't know the technical
term for what I am trying to do I can't google it

(def age 3)

then

(cons (symbol "age") [2 1])

I get

(age 2 1)

rather than

(3 2 1)

which is what I was hoping for. Or maybe you cannot do this at runtime?

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

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