>
> Yes, your solution works, but only on clojure. ClojureScript doesn't have
> `resolve`. It there any portable solution?
>
>
I'm not sure if and how you can do it in ClojureScript... have you tried:
https://groups.google.com/forum/#!forum/clojurescript
cheers,
Gianluca
--
You received this
On Sat, Oct 3, 2015 at 5:24 PM, gianluca torta wrote:
> Hi,
>
> the behavior you describe is not specific to macros, but is due to the use
> of aliases
>
> after:
> (require '[foo.bar :as b])
>
> this will give you false:
> (= 'foo.bar/x (first '(b/x)))
>
> while this will give you true:
> (= 'fo
Hi,
the behavior you describe is not specific to macros, but is due to the use
of aliases
after:
(require '[foo.bar :as b])
this will give you false:
(= 'foo.bar/x (first '(b/x)))
while this will give you true:
(= 'foo.bar/x (first '(foo.bar/x)))
one way to solve it, is comparing the resolved
Hi!
I have a little trouble writing a macro because I'm getting unexpected (for
me) behavior.
Let see some code:
(ns foo.bar)
(defn debug
[x]
(println "debug:" x)
x)
(defn debug-expr?
[expr]
(and (seq? expr)
(symbol? (first expr))
*(= 'foo.bar/debug (first expr))*))
(
Really sorry about pasting the code in the email. It seems to have added 2-3
extra new-lines after every line .. :( .. but the same code is present in
the github-gist.
Sunil.
On Mon, Dec 6, 2010 at 10:57 AM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> wrote:
> Hello everybody,
> The followi