core-logic

tsdh 2015-08-03T07:32:16.000087Z

nafc delays evaluation somehow until the args to the goal became ground. Is there some generic support for this delaying? I looked at the implementation but, well, didn't really get a clue. Maybe cgoal is the essence of it.

tsdh 2015-08-03T07:34:05.000088Z

But in my actual use-case, I don't have a constraint but a relation (foo a b c) which requires that at least a and b, or c are ground. It would be nice if I could delay that until that is the case.

jballanc 2015-08-03T14:29:54.000089Z

@tsdh: I think it’s in the IConstraintStep reification:

IRunnable
           (-runnable? [_]
             (every? #(ground-term? % s) args))))

tsdh 2015-08-03T14:32:50.000092Z

@jballanc: That's probably it. I'll tinker around with that if I find some time.

tsdh 2015-08-03T14:32:53.000093Z

Thanks

jballanc 2015-08-03T14:32:58.000094Z

np