Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Var resolution for query fns/preds when in JVM #178

Merged
merged 1 commit into from
Sep 15, 2016
Merged

Var resolution for query fns/preds when in JVM #178

merged 1 commit into from
Sep 15, 2016

Conversation

levand
Copy link
Contributor

@levand levand commented Sep 14, 2016

This commit adds a reader conditional to enable the use of
namespace-qualified symbols as query functions or predicates, when in
JVM Clojure. This allows queries using functions or predicates to be
reused between Datomic and DataScript when running on the JVM.

The semantics of a DataScript query are otherwise unchanged; global var
resolution is only attempted as a final step before failure.

The semantics when operating in a ClojureScript context are entirely
unchanged, since global symbol->var resolution is not supported.

This commit adds a reader conditional to enable the use of
namespace-qualified symbols as query functions or predicates, when in
JVM Clojure. This allows queries using functions or predicates to be
reused between Datomic and DataScript when running on the JVM.

The semantics of a DataScript query are otherwise unchanged; global var
resolution is only attempted as a final step before failure.

The semantics when operating in a ClojureScript context are entirely
unchanged, since global symbol->var resolution is not supported.
@tonsky tonsky merged commit 587e1e1 into tonsky:master Sep 15, 2016
@tonsky
Copy link
Owner

tonsky commented Sep 15, 2016

Thanks, good stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants