This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-07-16
Channels
- # admin-announcements (5)
- # announcements (2)
- # beginners (2)
- # boot (3)
- # cider (54)
- # clojure (196)
- # clojure-berlin (16)
- # clojure-brasil (4)
- # clojure-dev (36)
- # clojure-italy (3)
- # clojure-japan (9)
- # clojure-korea (3)
- # clojure-russia (18)
- # clojure-uk (24)
- # clojurebridge (11)
- # clojurescript (414)
- # code-reviews (1)
- # core-typed (4)
- # datomic (59)
- # editors (30)
- # euroclojure (2)
- # events (1)
- # jobs (2)
- # ldnclj (16)
- # liberator (11)
- # off-topic (59)
- # om (16)
- # onyx (33)
- # reagent (53)
- # thejaloniki (2)
- # yada (1)
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:
https://gist.github.com/annapawlicka/d0df3694a46d6a83ae61
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!