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

Negative Numbers Parsed as Keywords #136

Open
kyleerhabor opened this issue Dec 20, 2021 · 0 comments
Open

Negative Numbers Parsed as Keywords #136

kyleerhabor opened this issue Dec 20, 2021 · 0 comments

Comments

@kyleerhabor
Copy link

When negative numbers are used in predicates, they're parsed as keywords.

(pabu/read-str "user:following(-1, 2).")
;;=> {:rules (), :axioms ([:-1 :user/following 2])}

While it's easy to parse the keyword manually, it would be nice if Naga handled this internally. For example, using negative numbers as temporary IDs (e.g. Datomic, DataScript, Asami).

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

No branches or pull requests

1 participant