Replies: 3 comments 1 reply
-
Almost invariably, ?- report(X). dog X = comet. So Wrong! ?- report(not_comet). not a dog true. So, which is it? Is |
Beta Was this translation helpful? Give feedback.
1 reply
-
In general, read this article which explains |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would still like to get feedback on my questions numbered 1 and 2 above. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm learning about the reif library and trying to understand when it is preferable to use
if_
instead of->
.It seems the reif library requires having rules that can set their last argument to the atoms
true
andfalse
. Is it correct that Prolog does not officially have a Boolean type, but the atomstrue
andfalse
are commonly used for this purpose?In the simple code below, is it necessary to create the
is_dog
rule in order to useif_
in thereport_reif
rule?Are there reasons why using
if_
instead of->
is preferable in this case?Beta Was this translation helpful? Give feedback.
All reactions