From 93a043e4e18623633defae5d35371e36b012e010 Mon Sep 17 00:00:00 2001 From: Jeff Evans Date: Fri, 24 Sep 2021 16:40:35 -0500 Subject: [PATCH] Adding note on future proofness --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index e96ff0d..28fa17f 100644 --- a/README.md +++ b/README.md @@ -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