Clojure 1.12.0-alpha12

Clojure 1.12.0-alpha12

23 May 2024
Alex Miller

Clojure 1.12.0-alpha12 is now available! Find download and usage information on the Downloads page.

Functional interfaces

Java programs define "functions" with Java functional interfaces (marked with the @FunctionalInterface annotation), which have a single method.

Clojure developers can now invoke Java methods taking functional interfaces by passing functions with matching arity. The Clojure compiler implicitly converts Clojure functions to the required functional interface by constructing a lambda adapter. You can explicitly coerce a Clojure function to a functional interface by hinting the binding name in a let binding, e.g. to avoid repeated adapter construction in a loop.

See: CLJ-2799

Other changes


  • CLJ-2717 - nthrest now returns rest output on n=0 or past end of seq

  • CLJ-2852 - Updated all deps, test deps, and plugin versions to latest


  • CLJ-2803 - #inst printer - no longer uses a ThreadLocal formatter