This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-06
Channels
- # adventofcode (106)
- # aleph (1)
- # announcements (1)
- # asami (14)
- # babashka (120)
- # beginners (54)
- # calva (106)
- # chlorine-clover (33)
- # clj-kondo (5)
- # cljdoc (3)
- # cljs-dev (3)
- # clojure (92)
- # clojure-android (1)
- # clojure-australia (2)
- # clojure-europe (24)
- # clojure-italy (3)
- # clojure-nl (5)
- # clojure-uk (16)
- # clojuredesign-podcast (1)
- # clojurescript (29)
- # code-reviews (58)
- # conjure (16)
- # core-logic (4)
- # cursive (9)
- # datalevin (2)
- # graphql (20)
- # gratitude (7)
- # jackdaw (11)
- # java (9)
- # jobs (2)
- # lsp (23)
- # minecraft (1)
- # missionary (28)
- # off-topic (5)
- # polylith (5)
- # react (1)
- # reagent (12)
- # releases (1)
- # remote-jobs (4)
- # reveal (7)
- # shadow-cljs (8)
- # slack-help (1)
- # tools-deps (11)
- # vim (6)
An error I just caught in a PR (and simplified into obvious small case)
(let [strings (filter string? (range 23))]
(when strings
(println "i found strings")))
The intention here is when strings are found, but the empty lazy seq returned from the filter is always truthy. I know clj-kondo has some type-inference going on. Is it possible for it to catch this error?cool. i’ll make an issue then. wasn’t sure if it was something you had enough info to work with at all. glad to know
I think I saw this issue before in the recent days when I went through all of them, and yes, here it is: https://github.com/clj-kondo/clj-kondo/issues/721 Give it a thumbs up.
👍 1