Machine-translated by Google. Questions are authored in English.
Top

Discussion

Why does the cut damage the declarative reading?

  • A.The cut introduces negation into an otherwise positive program
  • B.Cuts cannot be given any logical interpretation at all
  • C.The cut removes clauses that the declarative reading requires
  • D.The program's meaning becomes dependent on the search order

Answer: D

With alternatives discarded, whether a goal succeeds depends on which clauses were tried first, so the logical reading no longer predicts the behaviour. Programs using cut must be read procedurally. Negation is a separate feature, some cuts do have logical readings, and no clauses are deleted. A feature whose cost is the loss of the language's principal claim is worth using sparingly and documenting carefully wherever it appears.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.