Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Correct platform-specific vs. common file extensions in table



No Format
Library files:
 src/my/core.clj - ns requires my.thing
 src/my/thing.clj - Clojure implementation of my.thing (loaded by Clojure)
 src/my/thing.cljs - ClojureScript implementation of my.thing (loaded by ClojureScript)
Open ClojureScript question:is  Is it possible to have a single .clj namespace that is used for both feature expressions when loaded in a Clojure context and macros when loaded via require-macros? What are the semantics?

Open ClojureScript question: Is it possible to AOT and publish a library with Clojure .class files that will be loaded when the library is used by Clojure and .cljs files with the same namespace that will be loaded and used by ClojureScript? 


  1. What about non-boolean expressions for things like Clojure version, JDK version, etc?  Out of scope. The "compile-if" trick covers many of those (relatively rare) cases already.


JIRA Tickets and patches: