Fork me on GitHub
#core-logic
<
2015-08-03
>
tsdh07:08:16

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.

tsdh07:08:05

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.

jballanc14:08:54

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

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

tsdh14:08:50

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