This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-02
Channels
- # announcements (21)
- # bangalore-clj (1)
- # beginners (122)
- # calva (29)
- # cider (9)
- # cljdoc (1)
- # cljs-dev (7)
- # cljsrn (1)
- # clojure (84)
- # clojure-dev (11)
- # clojure-europe (2)
- # clojure-houston (2)
- # clojure-italy (31)
- # clojure-nl (5)
- # clojure-uk (37)
- # clojuredesign-podcast (3)
- # clojurescript (14)
- # cursive (66)
- # data-science (5)
- # datavis (1)
- # datomic (6)
- # fulcro (16)
- # graphql (4)
- # jobs (2)
- # music (1)
- # off-topic (20)
- # pedestal (1)
- # re-frame (2)
- # reagent (2)
- # shadow-cljs (155)
- # spacemacs (5)
- # tools-deps (5)
- # vim (8)
- # yada (1)
I’ve got a couple of decimal objects created via decimal.js-light
They compare equal with (.equals a b)
but not with (= a b)
is there anyway I can make the extend the cljs equality to these objects?
ah, can I use https://cljs.github.io/api/cljs.core/extend-type with IEquiv?
yep, see an example in https://funcool.github.io/clojurescript-unraveled/#comparison
there is IEquiv
for equality and IComparable
for comparison (ordering)
awesome thanks
was suprisingly difficult to search for
How much am I foot-gunning myself by monkey patching https://firebase.google.com/docs/reference/js/firebase.firestore.Timestamp to support .getTime
? It’s really annoying that these objects do not support .getTime
…
why not https://firebase.google.com/docs/reference/js/firebase.firestore.Timestamp.html#todate ?
and then .getTime
?
@U04V4KLKC because it forces me to handle these dates separately from native dates. The other alternative is to prepare the data containing those dates but I kind of wanted to avoid that