Skip to content

Make API portable to ClojureScript #11

Closed
@cemerick

Description

@cemerick

You expressed interest in doing this before. I wanted to ask what your preference is for accomplishing it; there are three options AFAIK, which I describe assuming you haven't done much ClojureScript (apologies if that's incorrect):

  1. Maintain separate codebases
  2. Ensure that the Clojure codebase is fully portable, and let lein-cljsbuild crossovers copy things over to .cljs files when users consume simple-check.
  3. Use cljx.
(1) is crazy. (2) is doable; the biggest downside there that every user needs to manually add all of the Clojure namespaces they plan on using from ClojureScript in their `project.clj`, i.e. lein-cljsbuild doesn't figure out namespace-level dependencies or anything. I am partial to (3), having used it for some time, and recently mostly-rewrote it. You can see an example of its use over in [pprng](https://github.com/cemerick/pprng).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions