You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Clojure
The only discussion I’ve seen about providing conditional support for spec in libraries is in the old thread started by Sean Corfield for the JDBC library:
Is the technique described there, the recommended best practice? Or should we expect to see a :spec feature expression added to Clojure 1.9+? Do people have other ways of providing conditional spec support in libraries targeted at multiple clojure versions?
Any feedback appreciated.
Lei
unread,
Oct 23, 2016, 1:56:52 PM10/23/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Clojure
graphql-clj library tries to support both Clojure 1.9 and 1.8.
The way it does:
Library use Clojure 1.9 as dependency.
For project uses Clojure 1.8 and depends on graphql-clj, it has a few options:
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Clojure
We do not plan to add a :spec feature expression (also, feature expressions are not actually a thing - the final version of reader conditionals only supports platform tags).
Max Penet
unread,
Oct 23, 2016, 3:48:34 PM10/23/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Clojure
Another way is to provide the specs as a separate (or "sub") project. You then dont have to care about clojure versions, potential aot issues etc.