This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-30
Channels
- # announcements (25)
- # beginners (11)
- # biff (8)
- # calva (19)
- # cider (9)
- # clojure (16)
- # clojure-europe (15)
- # clojure-nl (1)
- # clojure-norway (40)
- # clojure-spec (4)
- # clojure-uk (5)
- # data-science (11)
- # dev-tooling (1)
- # emacs (46)
- # events (4)
- # figwheel-main (3)
- # gratitude (4)
- # heroku (1)
- # humbleui (1)
- # integrant (4)
- # jobs (11)
- # jobs-discuss (48)
- # lsp (3)
- # malli (24)
- # off-topic (12)
- # overtone (14)
- # pathom (26)
- # portal (4)
- # reitit (3)
- # releases (2)
- # remote-jobs (5)
- # ring-swagger (4)
- # scittle (44)
- # shadow-cljs (47)
Grateful to the core team for what looks like careful and considered work on the new java interop functionality! Excited to peel off some layers of indirection around when using java libraries
@U051H1KL1 What are these new interop functionality? We are on a little older version in production. Would like to know what are you referring to!
I’m not sure how much of this you’ve seen, but see https://clojure.org/news/2024/04/28/clojure-1-12-alpha10 under Method Values. It think it’s been evolving a bit through the development of 1.12 but I think the basic gist is that you can use java instance and static methods in value positions.
So instead of having to wrap all the time e.g. (map #(SomeJava/method %) coll))
you can use the java method directly (map SomeJava/method coll)
, and the java methods can be passed around like a clojure value cans. Also when the method is overloaded, there’s a new way “param-tags” of selecting which overload you would like. I may have got some details wrong here but I hope that’s useful !