This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-28
Channels
- # announcements (19)
- # aws (4)
- # babashka (17)
- # beginners (74)
- # biff (2)
- # calva (5)
- # cider (6)
- # clerk (14)
- # clj-kondo (12)
- # cljs-dev (3)
- # clojure (40)
- # clojure-dev (26)
- # clojure-europe (28)
- # clojure-nl (1)
- # clojure-norway (39)
- # clojure-sweden (1)
- # clojure-uk (4)
- # conjure (2)
- # docker (35)
- # emacs (24)
- # graalvm (15)
- # graphql (1)
- # gratitude (4)
- # holy-lambda (2)
- # hyperfiddle (8)
- # introduce-yourself (3)
- # jobs (3)
- # nrepl (2)
- # off-topic (9)
- # pedestal (8)
- # reitit (5)
- # releases (3)
- # remote-jobs (3)
- # yamlscript (1)
Looking at the core function type annotations in clj-kondo.impl.types.clojure.core
there seem to be plenty of low-hanging fruit - just wondering if there are any performance tradeoffs here with having too many annotations to type-check, thus only focusing on the more common or easily-misused functions?
I'd say just add to it, if there is a real thing to win, I mean, if the type is just going to be :any
we don't really win much
I can't seem to use the namespace-level config to specify these annotations, is that a bug or unsupported?
(ns repro
{:clj-kondo/config
'{:linters
{:type-mismatch
{:namespaces
{clojure.core
{mod {:arities {2 {:args [:number :number]
:ret :number}}}}}}}}})
(first (mod :oops 3))
I'm not sure if many people will use it like this. It's unlikely that people want to override type checking on a local basis