News for hackers. Stuff that matters.
Re:Feature Macros, an Alternative to Feature Expressions in ... by ICWiener on Wednesday January 21, 2015 @12:09PM (#8924018)
I am looking at one of the examples:

https://github.com/feature-macros/clojurescript/blob/feature...

But if I run Clojure on the JVM, the following fails:

     (def host nil)
     (defn foo [] (when (= :cljs host)
                    (gstring/format "something")))
... the error being that there is no "gstring" namespace.

Since the proposed solution with macros would produce such code (I am right?), how does it solve the issue of namespaces that only exist in a specific platform?

Re:Feature Macros, an Alternative to Feature Expressions in ... by michaniskin on Wednesday January 21, 2015 @12:12PM (#8924054)
I think the `case-host` macro is what you're looking for: https://github.com/feature-macros/clojurescript/blob/feature...
Re:Feature Macros, an Alternative to Feature Expressions in ... by ICWiener on Wednesday January 21, 2015 @01:01PM (#8924411)
Ok, thanks. So unlike Common Lisp, symbol resolution does not occur at read time.