Re: Change platform for reader conditionals

2018-07-19 Thread Alex Miller
With read-string in Clojure, the :clj platform feature is always active but it is possible to add additional features like :cljs: (read-string {:read-cond :allow, :features #{:cljs}} "#?(:clj 1 :cljs 2)") In this case, both :clj and :cljs features will be active, so it will return 1 because

Change platform for reader conditionals

2018-07-18 Thread Nikita Beloglazov
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