;; *** before: ***
;; sharing code between Clojure and ClojureScript meant keeping
;; two near-identical files, one .clj and one .cljs
;; *** in version 1.7: ***
;; a single .cljc file, and the #? reader conditional picks the
;; branch for the platform that is actually reading the file
(defn parse-number [s]
#?(:clj (Long/parseLong s)
:cljs (js/parseInt s 10)
:default nil))
;; #?@ splices a sequential form into the surrounding code
(def platform-deps
[:common-dep #?@(:clj [:clj-only-dep] :cljs [:cljs-only-dep])])