This use case will be provided by Feature Expressions which are planned to come out in Clojure (JVM) 1.7 and presumably will come in a release of ClojureScript around the same time. You can find more details about this planned feature at http://dev.clojure.org/display/design/Feature+Expressions On Mon, 20 Apr 2015 at 3:20 am Dominykas Mostauskis < [email protected]> wrote:
> Is it possible to check in macro if being compiled in Clojure or > Clojurescript? > > When I'm writing a library for both Clojure and Clojurescript, I use the > same file which I hardlink so that both compilers could access it. Ergo > same code, which is very pleasant: until I have to use JVM or JS specific > functionality. I'm looking for a painless way to expose different code to > different compilers. cljx does the trick, but it's a leiningen plugin and I > need a solution that would work on boot-clj. > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
