This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-20
Channels
- # announcements (1)
- # babashka (4)
- # beginners (8)
- # cider (4)
- # clj-kondo (10)
- # cljdoc (1)
- # cljsrn (7)
- # clojure (3)
- # clojure-europe (20)
- # clojure-france (3)
- # clojure-sg (2)
- # clojurescript (16)
- # clojureverse-ops (3)
- # community-development (5)
- # core-async (35)
- # cursive (1)
- # datahike (14)
- # datomic (7)
- # events (5)
- # fulcro (59)
- # graphql (11)
- # lsp (33)
- # meander (1)
- # off-topic (33)
- # polylith (23)
- # portal (33)
- # re-frame (1)
- # reagent (10)
- # reclojure (7)
- # reveal (14)
i would prefer to have them be automatic
(not (empty? ...))
issues a warning (use `seq` idiom instead)
However, when this is the last form in a function for instance, the result is not the same (returning a boolean vs ?seq)
I would suggest issuing this warning only when used in a conditional (`if` and friends) 🙂 (edited)
I don't know, clj-kondo just reflects what's in the docstring of empty?
, empty? doesn't suggest the context of a condition
Yep or just disable that linter since it's not super crucial
Ah, is that new? I don't remember reading about that