Fork me on GitHub
#core-logic
<
2020-11-25
>
chrisblom08:11:00

hmm, maybe i can create something based on ==

chrisblom09:11:49

(instanto string instant) such that if string and instant are grounded, check if (= (parse-instant string) instant if only string is grounded, bind instant to (parse-string string) if only instant is grounded, bind string to (format-string instant)

chrisblom09:11:01

i'll have to figure out how to handle the case where both are unbounded

hiredman09:11:05

You would need to basically store your relation until either becomes ground and check again, which is more or less how constraints work

chrisblom10:11:13

yeah that makes sense, what i need is basically equality modulo parsing/formatting, so it should work similar how the constraints enforce equality