Skip to content

Commit 93a043e

Browse files
authored
Adding note on future proofness
1 parent a17779b commit 93a043e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ doesn't matter.
7070
"Java 20 and beyond")
7171
```
7272

73+
## Future Proof
74+
75+
This library attempts to be future proof, to support major Java versions that may be released after its latest release. Suppose `K`=`J+1`, and you have a clause
76+
for `J+`. At macro expansion time, the Clojure compiler detects the Java version is `K` (via the JVM property). This clause should work as expected. However, I
77+
haven't thought of the best way to comprehensively test this (suggestions welcomed).
78+
79+
In any case, you can always just use the default clause to specify the "latest" form.
80+
7381
## Building and Testing
7482

7583
This project was created with https://github.com/seancorfield/clj-new

0 commit comments

Comments
 (0)