Replies: 2 comments 1 reply
-
This could be solved by a concept called transactions. See for example Extending the logical update view with transaction support by Jan Wielemaker: A transaction would "locally" assert new clauses, and make sure that everything is retracted on backtracking. This could be an interesting future extension of Scryer Prolog. |
Beta Was this translation helpful? Give feedback.
-
Would linear assumptions help in your case? See the following simple example and its bibliographic reference: |
Beta Was this translation helpful? Give feedback.
-
Is there something like assert that interacts more naturally with choicepoints? Where the assertion is only valid/exists in the same branch that made the assertion. (Perhaps there is a better way to state this.)
In scryer today:
I would want:
Beta Was this translation helpful? Give feedback.
All reactions