We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When comparing an empty list [] with the '[]' atom, it is considered equal.
[]
'[]'
This issue can be easily reproduced using the provided interactive interpreter cmd/1pl:
cmd/1pl
?- [] = '[]'. true
I'd be happy to have your thoughts about that, if I can be of any help it'll be a pleasure :)
The text was updated successfully, but these errors were encountered:
The empty list is an atom in ISO Prolog Core standard and in almost all Prolog systems (*). There's no bug here.
(*) The only exception is SWI-Prolog which made the (questionable and very publicly criticized decision) to make [] its own type in release 7.x.
Sorry, something went wrong.
json_prolog
Oh I see, thanks @pmoura :)
No branches or pull requests
Description
When comparing an empty list
[]
with the'[]'
atom, it is considered equal.How to reproduce
This issue can be easily reproduced using the provided interactive interpreter
cmd/1pl
:I'd be happy to have your thoughts about that, if I can be of any help it'll be a pleasure :)
The text was updated successfully, but these errors were encountered: