I would lead the desired term with ~'

For example:

`(+ 1 2)
=> (clojure.core/+ 1 2)

`(~'+ 1 2)
=> (+ 1 2)

This is very useful when defining a function in a macro

On May 26, 2:30 pm, kyle smith <the1physic...@gmail.com> wrote:
> user> (def nums '(1 2 3))
> #'user/nums
> user> (def funs '((+ (1 2 3)) (- (1 2 3))))
> #'user/funs
> user> funs
> ((+ (1 2 3)) (- (1 2 3)))
> user> (def funs `((+ ~nums) (- ~nums)))
> #'user/funs
> user> funs
> ((clojure.core/+ (1 2 3)) (clojure.core/- (1 2 3)))
>
> I would expect these two approaches to be the same, but when using
> quasiquote, it qualifies my functions.  How can I prevent this
> (without copy & paste)?
--~--~---------~--~----~------------~-------~--~----~
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
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