This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-29
Channels
- # announcements (7)
- # babashka (4)
- # beginners (21)
- # calva (31)
- # cljdoc (12)
- # cljsrn (5)
- # clojure (89)
- # clojure-europe (26)
- # clojurescript (9)
- # conjure (1)
- # cursive (3)
- # data-science (20)
- # events (2)
- # fulcro (4)
- # gratitude (7)
- # introduce-yourself (1)
- # lsp (24)
- # nextjournal (3)
- # off-topic (5)
- # re-frame (22)
- # shadow-cljs (48)
- # tools-deps (11)
Is js/BigInt
the recommended for big integers in ClojureScript? But it seems not being supported by transit, and in transit spec, there's a BigInteger, however I couldn't find what type in ClojureScript(I know there's a BigInteger in Clojure)?
A small correction - BigInteger
exists in Java, not in Clojure. But clojure.core
has a function biginteger
.
Similarly, JavaScript has BigInt
, but CLJS does not have biginteger
. I don't know for sure why but my bet is that's because BigInt
is a relatively recent addition - e.g. in Firefox it has been implemented a little more than 2 years ago. And I guess that's also the reason why it's not supported in Transit.
With that being said - yes, you should use js/BigInt
for big integers if all your target platforms support it. And you can enable Transit to read and write it with custom handlers - it's designed for extensibility.
I'm getting some console errors when I try and submit a form but the submit action also immediately reloads the entire page, thus erasing the console messages. How can I see those error messages? Shadow-cljs doesn't show any errors
if you click on chrome's console settings. there's a "Preserve log" option