What's the status of work on the Java interop sugar around functional interfaces these days? @ghadi @alexmiller
I found https://clojure.atlassian.net/browse/CLJ-2637 but there were earlier issues too, yes?
Ah, https://clojure.atlassian.net/browse/CLJ-2365 is another
I ask because the topic came up in a thread in #clojure-europe about a company rewriting a Clojure codebase to Java and someone said with the increase in use of functional interfaces in Java libraries, interop from Clojure was getting harder...
+1
Still in the 1.12 queue
i sympathize that there is more use of functional interfaces in the wild than before, and that I'd like to see some sort of assistance in to core... ...that being said...
we all have macros, and interop is usually isolated to a boundary
I don't buy that it is actually getting harder with the addition of functional interfaces, because when things were written in java without functional interfaces you got lots of bespoke interfaces for function like stuff, in both cases you have an interface (a Function or some bespoke project thing) and you just reify it
if anything java providing an official set of interfaces means you can write a single adapter from clojure fns to each of those and reuse those adapters everywhere
which is one of the options we're considering
I suspect it "feels" harder because it seems like a 1:1 mapping from clojure fns to java functional interfaces should already exist, whereas if it was lots of bespoke little interfaces of course you just have to reify them