Fork me on GitHub
#clara
<
2017-06-08
>
jfntn13:06:16

I’m not familiar with clara but I’ve been wondering if it could be used to model a HFSM/Statechart by defining a hierarchy of rules?

jfntn13:06:16

I.e. in any given state, only a subset of the engines rules are loaded, and generally you’d want children states to activate their parent’s rules

jfntn13:06:58

The OOP like mechanics can easily be achieved with a custom hierarchy in clojure, but I’m wondering if scoping rules to their respective state in clara would involve instantiating different rulesets, or dynamically mutating a global rules registry