A few unquoted atoms for your collection #2420
triska
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Is syntax described formally in some document other then ISO Prolog specification? Like how does it know that |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of the issues I sometimes see in new Prolog code is that more quotes than necessary are used.
So, here are a few atoms for your collection:
None of them require quoting. An example of an atom that does need quoting is
'a b'
.A key attraction of Scryer Prolog is that it can be reliably used to determine what is Prolog syntax and what is not, so you can easily use it to see whether an atom needs quoting.
Enjoy!
Markus
Beta Was this translation helpful? Give feedback.
All reactions