Hi all, I am just trying Precept and I don't know what is the different between "#(then [:transient" and "#(then [:global". Could you please possibly explain it to me.
@thinhptran :transient inserts facts that are automatically removed when the rules finish executing. :global inserts singletons. This is the impl for :transient https://github.com/CoNarrative/precept/blob/master/src/clj/precept/impl/rules.cljc#L8
@logbot has joined the channel
Global is used as a singleton in this case but there's nothing special. It could be :app or anything
:transient is special. It works just like Kenny explains 😊
So an entity is of global or anything other than transient will create a fact that survives until it is retracted