This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-17
Channels
- # beginners (10)
- # boot (9)
- # cider (1)
- # cljs-dev (191)
- # clojure (77)
- # clojure-russia (4)
- # clojure-serbia (10)
- # clojure-spec (19)
- # clojure-uk (4)
- # clojurescript (16)
- # core-async (9)
- # cursive (1)
- # data-science (1)
- # datomic (3)
- # emacs (42)
- # graphql (2)
- # hoplon (38)
- # jobs (1)
- # jobs-discuss (18)
- # luminus (3)
- # lumo (20)
- # off-topic (9)
- # om (51)
- # parinfer (3)
- # pedestal (8)
- # re-frame (4)
- # reagent (7)
- # rum (9)
- # sql (9)
- # untangled (81)
Hm, seems I didn't have figwheel true set on the build. Strange, pretty sure it worked on my other computer
how can I preserve fractions in clojurescript? figwheel complains with "Could not Compile" as soon as I put fraction into component:
[:div {} 1/2]
do Ratios even exist in cljs?
I think the clojurescript compiler just outputs doubles when it reads a ratio
hmm - I'm testing this with self-hosting cljs on node though- I wonder what cljs.jar does
+$ cat src/repro/repro.cljs
(ns repro.repro)
(println 1/2)
+$ rlwrap java -jar cljs.jar
Clojure 1.8.0
+user=> (require 'cljs.build.api)
nil
+user=> (cljs.build.api/build "src" {:output-to "out/main.js"})
ExceptionInfo failed compiling constant: 1/2; class clojure.lang.Ratio is not a valid ClojureScript constant. clojure.core/ex-info (core.clj:4617)
+user=>