precept

Preception!
thinhptran 2017-06-20T11:32:43.468158Z

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.

kenny 2017-06-20T22:27:30.971490Z

@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

alex-dixon 2017-06-20T22:38:39.110097Z

Global is used as a singleton in this case but there's nothing special. It could be :app or anything

alex-dixon 2017-06-20T22:39:13.116428Z

:transient is special. It works just like Kenny explains 😊

alex-dixon 2017-06-20T22:39:57.124876Z

So an entity is of global or anything other than transient will create a fact that survives until it is retracted

alex-dixon 2017-06-20T22:41:06.138746Z

@thinhptran