This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-19
Channels
- # announcements (5)
- # beginners (7)
- # boot (1)
- # calva (1)
- # cider (7)
- # circleci (2)
- # clara (5)
- # clj-kondo (1)
- # clojure (19)
- # clojure-chicago (1)
- # clojure-dev (3)
- # clojure-europe (1)
- # clojure-spec (1)
- # clojure-sweden (5)
- # clojure-uk (25)
- # clojurescript (4)
- # cursive (2)
- # data-science (1)
- # datomic (44)
- # graphql (9)
- # hoplon (2)
- # klipse (2)
- # luminus (1)
- # nrepl (1)
- # off-topic (38)
- # planck (1)
- # precept (1)
- # quil (1)
- # re-frame (3)
- # reagent (5)
- # shadow-cljs (12)
- # spacemacs (13)
- # sql (2)
- # xtdb (10)
Whats the difference from a query and a rule in rules engines in general. As i understand it. a rule is propositional logic "if X then Y" / X :- Y. But is query something else or is it just a rule where X is some direct match lookup?
It seems in clara that rules can have arguments, is that right?
@drewverlee queries gives you an external hook to pull data from the session. It has no RHS. When you “call” the query you get the matches as a result. The match’s have all the variable bindings of the rule bound by those keys for you to access.
👍 4