clojure-dev

arohner 2024-07-08T10:12:27.021229Z

Functional interfaces require function literals at the call site, not variables, right?

Alex Miller (Clojure team) 2024-07-08T12:07:50.557489Z

Either

arohner 2024-07-08T10:12:51.783429Z

i.e. (.foo x (fn [y] …)), not (let [z (fn [y] ...)] (.foo x z)

Alex Miller (Clojure team) 2024-07-08T12:09:36.526679Z

Either of these is fine, but you can lift the coercion to the let by type hinting z (the binding, not the expression) with the FI type

👍 1