Hi, I am having a problem with resolving a defrecord call that resides in a seperate namespace from the rule defininitions. I was wondering if someone might be able to help me out. I have the code I made for a small prototype that repros the issue here: https://github.com/briancabbott/clara-rules-test
@briancabbott in CLJ to refer to a defrecord created type you have to use the java interop :import
So it’s not represented as a var. so :require + :refer won’t work.
It’s somewhat unfortunate. In CLJS you actually can refer to them as non-interop style symbols.
So something like. : `(:import [ clara_rules_test.parent_rules_split_ns.rule_records MyFirstRecordOne MyFirstRecordTwo])`
Not also the need for underscores instead of hyphens. Again. That’s the java interop part. Cannot have hyphens in class names on JVM so clj converts them (called “munching”) to underscores.
BAM!!! HELL YES! 🙂 Thank you my friend --- you are my Savior!
🙌
It's been a while... are there any issues with [:not [:exists ...]]
? I have a rule that is firing, even though the LHS has [:exists A] [:not [:exists A]]
.
Thats an interesting scenario, i will have to look into whats going on there
oh, while that is not correct, it is actually silly to say [:not [:exists A]] instead of [:not A], huh