Fork me on GitHub
#datomic
<
2015-10-22
>
Ben Kamphaus02:10:54

The or-join logic had gotten complex enough I'd probably just define a rule instead. Maybe more personal preference, though.

bostonaholic15:10:56

@bkamphaus: actually, I have them all in rules, but I wanted to simplify my example for you all

bostonaholic15:10:55

and I love that the clauses inside of a rule are by default and so I don't need to wrap them when in a rule

Ben Kamphaus17:10:46

@bostonaholic: yeah, the split use case for me is this (again, communicating preference more than anything) — different paths to a match = rule. Something like “people with blue or green eyes” is an or-clause. If I have to nest or/and too far, or write out a truth table to make sure I’m thinking through De Morgan’s laws correctly, well maybe a rule simple_smile

bostonaholic17:10:38

CS to the rescue!