This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-17
Channels
- # announcements (2)
- # aws (44)
- # beginners (96)
- # calva (10)
- # cider (7)
- # cljdoc (5)
- # cljsrn (2)
- # clojure (38)
- # clojure-dev (19)
- # clojure-europe (6)
- # clojure-italy (16)
- # clojure-nl (10)
- # clojure-norway (44)
- # clojure-spec (7)
- # clojure-uk (74)
- # clojurescript (133)
- # cloverage (1)
- # cursive (54)
- # datomic (78)
- # duct (11)
- # graalvm (5)
- # instaparse (4)
- # joker (3)
- # kaocha (5)
- # nrepl (2)
- # off-topic (10)
- # pathom (56)
- # pedestal (1)
- # reagent (7)
- # reitit (17)
- # shadow-cljs (144)
- # slack-help (2)
- # sql (35)
- # testing (5)
- # tools-deps (22)
- # vim (22)
- # xtdb (11)
Since Clojure now mandates Java8 as there been prior discussion around making functions implement the java.util.Function
methods to make interop with Java APIs that make heavy use of it a bit more seamless?
another approach is to enhance host interop calls to be smarter and auto-add interfaces
do we want to have nice interop with all functional interfaces, including ones that don't live in java.util.function?
ThreadLocal.withInitial(() -> new Whatever()); // creates a Supplier
Thread.currentThread().setUncaughtExceptionHandler((thread, throwable) -> doSomething()); // a Thread$UncaughtExceptionHandler
and they don't have to be in java.util.function -- any interface with one abstract method will do
feel free to vote for https://ask.clojure.org/index.php/767/integration-with-java-util-function-interfaces?show=767#q767
although it is already on the list for 1.11 consideration
there’s also https://github.com/ajoberstar/ike.cljj