Emmanuel Oga
06/22/2021, 6:40 AMDatalog disallows complex terms as arguments of predicates, e.g., p (1, 2) is admissible but not p (f (1), 2)Perhaps unification of complex/custom data structures is more productive for pattern matching than for general logic programming ... but not sure (SWI prolog's dict maybe contradicts this idea).
Emmanuel Oga
06/22/2021, 6:59 AMdict
, they allowed an arbitrary tag name to be used
Edit: the manual say dicts are "structs with named arguments", so they need a tag like any other structure, I guessNick Smith
06/23/2021, 7:58 AMNick Smith
06/23/2021, 8:03 AMNick Smith
06/23/2021, 8:04 AM