This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-08
Channels
- # beginners (76)
- # boot (13)
- # cider (3)
- # clara (7)
- # cljs-dev (254)
- # cljsrn (5)
- # clojure (20)
- # clojure-austin (2)
- # clojure-chicago (4)
- # clojure-dev (7)
- # clojure-russia (5)
- # clojure-spec (18)
- # clojurescript (68)
- # cursive (8)
- # datascript (3)
- # datomic (8)
- # garden (1)
- # hoplon (3)
- # lambdaisland (4)
- # luminus (20)
- # mount (19)
- # off-topic (30)
- # om (10)
- # onyx (8)
- # parinfer (14)
- # precept (7)
- # reagent (9)
- # unrepl (3)
- # untangled (72)
- # vim (4)
- # yada (1)
Withing REPL are newly defined rules are picking up? I create session with mk-session and :cache false
mk-session should pick up new rules in the REPL. It will only look in the current namespace, though, unless you are explicitly passing namespaces.
@ryanbrush so I need to call mk-session again? if so, is there any way to transfer facts from one session to another? or maybe fire-rules would be enough?
You'll need to pass in your facts into the new session again. Clara won't do this automatically, but I usually reload the facts or keep them in a list.
I see, so I need to write small wrapper for insert-fact, retract-fact which would store facts in separate collection. Then use this collection then I need to re-init session.
Thanks!