Skip to content

Commit cbe14aa

Browse files
committed
1.12.0-alpha12
1 parent 948205d commit cbe14aa

File tree

3 files changed

+51
-5
lines changed

3 files changed

+51
-5
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
= Clojure 1.12.0-alpha12
2+
Alex Miller
3+
2024-05-23
4+
:jbake-type: post
5+
6+
Clojure 1.12.0-alpha12 is now available! Find download and usage information on the <<xref/../../../../../releases/downloads#,Downloads>> page.
7+
8+
[[method_values]]
9+
== Functional interfaces
10+
11+
Java programs define "functions" with Java functional interfaces (marked with the https://docs.oracle.com/javase/8/docs/api/java/lang/FunctionalInterface.html[@FunctionalInterface] annotation), which have a single method.
12+
13+
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.
14+
15+
See: https://clojure.atlassian.net/browse/CLJ-2799[CLJ-2799]
16+
17+
== Other changes
18+
19+
Added:
20+
21+
* https://clojure.atlassian.net/browse/CLJ-2717[CLJ-2717] - `nthrest` now returns rest output on n=0 or past end of seq
22+
* https://clojure.atlassian.net/browse/CLJ-2852[CLJ-2852] - Updated all deps, test deps, and plugin versions to latest
23+
24+
Reverted:
25+
26+
* https://clojure.atlassian.net/browse/CLJ-2803[CLJ-2803] - #inst printer - no longer uses a ThreadLocal formatter

content/releases/devchangelog.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,26 @@ Note: All dev releases are subject to breaking changes for new work since the pr
1919

2020
== Release 1.12.0
2121

22+
=== 1.12.0-alpha12 (May 23, 2024) [[v1.12.0-alpha12]]
23+
24+
https://clojure.org/news/2024/05/17/clojure-1-12-alpha12[Release notes]
25+
26+
Features:
27+
28+
* https://clojure.atlassian.net/browse/CLJ-2799[CLJ-2799] - Conversion of IFn to Java functional interfaces
29+
30+
Fixes:
31+
32+
* https://clojure.atlassian.net/browse/CLJ-2717[CLJ-2717] - `nthrest` now returns rest output on n=0 or past end of seq
33+
34+
Enhancements:
35+
36+
* https://clojure.atlassian.net/browse/CLJ-2852[CLJ-2852] - Updated all deps, test deps, and plugin versions to latest
37+
38+
Reverted:
39+
40+
* https://clojure.atlassian.net/browse/CLJ-2803[CLJ-2803] - #inst printer - no longer uses a ThreadLocal formatter
41+
2242
=== 1.12.0-alpha11 (Apr 30, 2024) [[v1.12.0-alpha11]]
2343

2444
* https://clojure.atlassian.net/browse/CLJ-2848[CLJ-2848] - Qualified instance methods without param-tags should use the qualified method class, not the target object type

content/releases/downloads.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,29 +53,29 @@ Clojure depends on Java and all Clojure code is compiled to Java 8 compatible by
5353

5454
Read the https://github.com/clojure/clojure/blob/master/changes.md[Changelog] for detailed release information.
5555

56-
== Development Release: 1.12.0-alpha11 (Apr 30, 2024)
56+
== Development Release: 1.12.0-alpha12 (May 23, 2024)
5757

5858
Include the release in your project using the following coordinates:
5959

6060
deps.edn coordinate:
6161

6262
[source,clojure]
6363
----
64-
org.clojure/clojure {:mvn/version "1.12.0-alpha11"}
64+
org.clojure/clojure {:mvn/version "1.12.0-alpha12"}
6565
----
6666

6767
Leiningen dependency:
6868

6969
[source,clojure]
7070
----
71-
[org.clojure/clojure "1.12.0-alpha11"]
71+
[org.clojure/clojure "1.12.0-alpha12"]
7272
----
7373

7474
* https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22clojure%22%20AND%20v%3A1.12.0*[Clojure 1.12.0 pre-release builds]
7575
* <<devchangelog#,Dev changelog>>
7676
* Dependencies:
77-
** `org.clojure/spec.alpha {:mvn/version "0.3.218"}`
78-
** `org.clojure/core.specs.alpha {:mvn/version "0.2.62"}`
77+
** `org.clojure/spec.alpha {:mvn/version "0.5.238"}`
78+
** `org.clojure/core.specs.alpha {:mvn/version "0.4.74"}`
7979
* Requirements: Java 8 or higher (recommended: Java 8, Java 11, Java 17, Java 21)
8080

8181
== Older Releases

0 commit comments

Comments
 (0)