Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
2-718-281-828
· 3y ago · 0 comments
aren't predicates in prolog always starting with a lower letter and only variables with a capital letter?
Comments
[–]
gorkempacaci
3y ago
Yes. Also, in the ancestor predicate, the arrow should be in the other direction.
[–]
maweki
3y ago
Yeah, we can't distinguish the arguments. Can't have a parent named X, I guess.
[–]
aarroyoc
3y ago
You can, you just need to quote it in single quotes: 'X'.