3 ms·
Anyone knows why the ClojureScript code has the same macros (repeat and all) in seperate files? Why can't everything be in the core.cljc file? https://github.c
by tosh 9y ago
Anyone knows why the ClojureScript code has the same macros (repeat and all) in seperate files? Why can't everything be in the core.cljc file?
https://github.com/google/clojure-turtle/blob/master/src/cljs/clojure_turtle/macros.cljc https://github.com/google/clojure-turtle/blob/master/src/clj...
https://github.com/google/clojure-turtle/blob/master/src/cljc/clojure_turtle/core.cljc https://github.com/google/clojure-turtle/blob/master/src/clj...
- elangoc 9y agoIt was in order to get the CLJS REPL to feel more like the regular Clojure REPL: https://github.com/google/clojure-turtle/issues/15 https://github.com/google/clojure-turtle/issues/15 The CLJS-macro story is still a little tricky -- CLJS targets the JS runtime, but you can't easily define macros in a self-hosted CLJS REPL (ex: one that you'd embed in a webpage). Lmk if there is a cleaner way now.
- tosh 9y agoAwesome enhancement. I'll keep that in mind. Thanks for the clarification.