Hi
Is it possible to read a string containing reader conditionals using a
platform different from "current". In particular in from clojure I want to
read a string that contains :cljs reader conditionals and evaluate them as
if current platform is cljs.
Example: if I run the following code from clj:
(read-string {:read-cond :allow} "#?(:clj 1 :cljs 2)")
then I get 1. But I want to get 2. Is there a way to do it in Clojure
somehow or maybe using tools.reader?
Thanks,
Nikita
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.