This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-09
Channels
- # announcements (10)
- # aws (7)
- # babashka (28)
- # babashka-sci-dev (53)
- # beginners (11)
- # clojure (43)
- # clojure-europe (100)
- # clojure-morsels (1)
- # clojure-nl (2)
- # clojure-norway (6)
- # clojure-russia (2)
- # clojure-spec (13)
- # clojure-uk (7)
- # clojurescript (13)
- # conjure (21)
- # datalevin (3)
- # emacs (46)
- # etaoin (4)
- # events (2)
- # fulcro (36)
- # graphql (7)
- # gratitude (1)
- # interceptors (13)
- # jobs-discuss (3)
- # kaocha (13)
- # membrane (3)
- # minecraft (2)
- # nbb (8)
- # off-topic (135)
- # pathom (30)
- # podcasts-discuss (1)
- # re-frame (24)
- # releases (1)
- # shadow-cljs (26)
- # sql (16)
- # squint (6)
- # tools-deps (4)
- # xtdb (8)
So, to spec or to malli?
At work we've been heavy users of Spec since it first became available in the 1.9 prerelease: https://corfield.org/blog/2019/09/13/using-spec/ I like that it's "built-in" and supported by the core team.
there was some discussion about this recently, https://clojurians.slack.com/archives/C03S1KBA2/p1659434539729849
Depends. The main benefits of malli are no global registry, high performance, schema properties, and built in coercion Spec is built in, the global registry might be a pro, not just a con, and you might like the syntax better
Why here https://clojure.org/reference/data_structures doesn't mentioned boolean type?
We have: nil Numbers Strings Characters Keywords Symbols Collections but where is Boolean??
I'm not sure that's intended to be an exhaustive list. Yes, there are booleans too.
Thank you Alex! ♥️
If I have code that uses a macro can I read/parse the macro before it is expanded?
(defmacro macroA…)
(macroA macro-a …)
I want to be able to read the clojure file and look for usages of macroA, but be able to “parse” the code before expansion. Going futher the macro uses references to other similar macro uses in other namespaces that I would also like to inspect…
(macroA macro-a
(other-ns/macro-b-usage … ))
So I’d like to find macro-b-usage as well and parse it similarly. I wasn’t sure what API’s would allow me that information.