Fork me on GitHub

Hey folks! I’m trying to write a clojure version check that will happen before a namespace form (if version is too old, namespaces in :require fail to load not saying why) and this is what I’ve got so far: There are a couple of things here that I’d like to get feedback on: code for the version check itself and AOT compilation. I’ve tried to put that check into a separate ns and just require it and call a function before ns form, but it doesn’t work in AOT compilation (throws NPE). Any suggestions on the code and on AOT will be greatly appreciated!