@Mike: Great post. I think you should make it more explicit that the :cljs
branch of the macro is never used on Clojure and CLJS/JVM.
Kind regards, Leon.
On Thursday, July 2, 2015 at 3:20:17 PM UTC+2, Mike Fikes wrote:
I’m interested in whether there is a nice answer to this as well.
It seems like the only way is to define two macros and call the desired one
using reader conditionals.
On Thursday, July 2, 2015 at 2:09:55 PM UTC+2, Michael Sperber wrote:
I'd like to define a macro differently for Clojure and for ClojureScript.
Is there a way to do this via reader
I'd like to define a macro differently for Clojure and for ClojureScript.
Is there a way to do this via reader conditionals? (My mind boggles.)
Regards,
Mike
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
I’m interested in whether there is a nice answer to this as well.
FWIW, I was recently pondering a closely related subject—portability that
additionally extends to bootstrapped ClojureScript:
http://blog.fikesfarm.com/posts/2015-06-19-portable-macro-musing.html