This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-06
Channels
- # adventofcode (2)
- # announcements (5)
- # architecture (4)
- # babashka (35)
- # beginners (28)
- # calva (4)
- # cider (9)
- # clerk (30)
- # clj-kondo (11)
- # clojure (58)
- # clojure-conj (3)
- # clojure-europe (71)
- # clojure-gamedev (2)
- # clojure-nl (3)
- # clojure-uk (2)
- # clojurescript (49)
- # conjure (2)
- # cursive (2)
- # emacs (4)
- # fulcro (1)
- # honeysql (2)
- # hyperfiddle (10)
- # jobs (2)
- # jobs-discuss (18)
- # leiningen (9)
- # membrane (14)
- # missionary (1)
- # off-topic (27)
- # pedestal (1)
- # polylith (5)
- # reagent (12)
- # releases (2)
- # remote-jobs (3)
- # shadow-cljs (83)
- # sql (5)
- # squint (14)
- # tools-build (13)
Hi, is there a way to use specs in :macroexpand hooks? I’m using a spec to conform some macro arguments and it doesn’t seem to work even when using the full name clojure.spec.alpha/def etc.
@U0JEEGD4N doesn't currently work. I want to wait until spec comes out of alpha in order to not increase binary size and have to support two versions
🙏 2
That’s fine I can use the messy first draft version of the macro (that doesn’t use spec) for the linting hook. For the most part the macroexpand hook just works which is really nice! Thank you, clj-kondo is awesome.
❤️ 2
Let’s say we have the following clj-kondo configuration:
{:lint-as {foo.core/mydefn- clojure.core/defn-}}
clj-kondo will correctly make mydefn-
lint as a private function. What I want is the analogous behavior for def:
{:lint-as {foo.core/mydef- clojure.core/def-}} ;; ?! clojure.core/def- doesn't exist: you have to add the ^:private meta tag to a def to get it to be private
Any way to get this behavior?