This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-04
Channels
- # announcements (13)
- # asami (68)
- # babashka (19)
- # beginners (51)
- # calva (4)
- # cider (3)
- # clj-kondo (13)
- # clojure (161)
- # clojure-australia (3)
- # clojure-europe (21)
- # clojure-nl (4)
- # clojure-spec (9)
- # clojure-sweden (13)
- # clojure-uk (9)
- # clojured (14)
- # clojurescript (7)
- # conjure (4)
- # cursive (16)
- # data-science (2)
- # datalog (1)
- # figwheel-main (7)
- # graalvm (18)
- # helix (14)
- # introduce-yourself (1)
- # jackdaw (9)
- # jobs (1)
- # kaocha (1)
- # malli (8)
- # meander (8)
- # off-topic (7)
- # pathom (11)
- # proletarian (3)
- # shadow-cljs (29)
- # tools-deps (106)
- # xtdb (8)
How do I do an ::Anything
spec in Clojurescript? In Clojure I have (s/def ::Anything #(instance? Object %))
Thanks, Yeah, I'll have to do a parity match on those
right, thanks, here's what I changed it to for my cljc file: (s/def ::Anything #(s/and some? any?))
This way I can specify s/nilable
in the specs that reference ::Anything
. Seem like an ok solution to you?
Yes, that's it! Something seemed wrong to me too, thanks again!
s/and with any? as an item is exactly equivalent to just the rest of the items