Fork me on GitHub
#clara
<
2017-07-08
>
dragoncube00:07:23

Withing REPL are newly defined rules are picking up? I create session with mk-session and :cache false

ryanbrush01:07:22

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.

dragoncube06:07:27

@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?

ryanbrush14:07:00

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.

dragoncube21:07:27

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.

ryanbrush21:07:28

Yes, that would do it.