forked from tonsky/datascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Var resolution for query fns/preds when in JVM (tonsky#178)
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.
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters