Great catch. This is a good example of how “types” as in other languages don’t really fit neatly in Prolog (I am referring to this discussion). More strict typing should catch such typos/thinkos, one would hope, but in fact both can be correct in some scenario. Same goes for syntactic sugar as discussed higher in the same thread.
Boris
28
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Programmatic interface to library(help)? | 3 | 99 | July 17, 2025 | |
| Autoload and qsave (swipl -c) don't go together | 27 | 1789 | February 12, 2020 | |
| Properties of modules and predicates | 0 | 783 | July 4, 2020 | |
| ChatGPT prompts - SWI-Prolog (2) | 0 | 780 | February 17, 2023 | |
| Changing autoload | 16 | 1183 | February 12, 2020 |