This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-08-05
Channels
- # announcements (7)
- # babashka (9)
- # beginners (47)
- # calva (28)
- # clj-kondo (17)
- # clj-otel (20)
- # clojure (193)
- # clojure-brasil (1)
- # clojure-europe (43)
- # clojure-norway (12)
- # clojure-uk (6)
- # clojurescript (18)
- # datalevin (15)
- # figwheel-main (3)
- # honeysql (3)
- # hyperfiddle (44)
- # introduce-yourself (2)
- # java (10)
- # lsp (19)
- # malli (9)
- # meander (4)
- # off-topic (14)
- # polylith (48)
- # re-frame (21)
- # releases (3)
- # shadow-cljs (6)
- # tools-deps (29)
- # yamlscript (3)
Hi! I got a strange-looking error for extend-protocol:
❯ echo '(defprotocol IByteArray (-to-bytes [this])) (extend-protocol IByteArray (Class/forName "[B") (-to-bytes [_]))' | clj-kondo --lint -
<stdin>:1:88: error: Function name must be simple symbol but got: "[B"
linting took 28ms, errors: 1, warnings: 0
This has come up several times here. Search for Class/forName. This behavior isn’t officially supported by Clojure
got it. thanks!
btw, perhaps you can use one of the new clojure 1.12 features here if you're willing to give 1.12 a try
thanks, but I have to wait for the release 🙂 looks like for now the only option is to ignore entire form
right, it should work as well. I'll try this
1.12 is already an RC! We're using Beta 1 and Beta 2 in production already.
yes, but unfortunately clj-kondo still doesn't support byte/1
as opposed to byte*
which was an old thing
I get the impression that only a handful of companies really help test the Clojure prerelease builds 😞