Skip to content

Commit

Permalink
Adding note on future proofness
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff303 authored Sep 24, 2021
1 parent a17779b commit 93a043e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ doesn't matter.
"Java 20 and beyond")
```

## Future Proof

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
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
haven't thought of the best way to comprehensively test this (suggestions welcomed).

In any case, you can always just use the default clause to specify the "latest" form.

## Building and Testing

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

0 comments on commit 93a043e

Please sign in to comment.