Replies: 2 comments 5 replies
-
|
It's already there, isn't it? ?- ... . error(existence_error(procedure,... /0),... /0). |
Beta Was this translation helpful? Give feedback.
-
Maybe what you mean is that an answer should always be usable as a query such that we get again that answer back. So that answers are effectively fixed points. This does hold in many situations, but it cannot hold everywhere. Think of the ellipsis used to abbreviate terms or side effects. The
No. It is just a non-conforming term. 7.7.7 b (Not sure where the round brackets you use come from, they suggest that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it a good idea to add built-in predicate
(...)/0that will just throw an exception analogously to Perl? It plays nicely with top-level answers, because with such predicate disjunctionA=0; A=1; (...).is a valid program and has expected behavior.I have no idea what to throw in this case though, but term
_/_implies that procedure doesn't exist and it is unknown – which kinda makes sense for "not implemented" error.Beta Was this translation helpful? Give feedback.
All reactions