Recently started woring with prolog and decided to make a text documenting my annoyances

That seems to be the necessary consequence of a rigid type system, i.e., a type system that allow full compile time checking of all types. I think Prolog needs a type system that first allows defining types and documenting types. Next, this may be used to derive type errors without trying to proof full type correctness and it can be used to allow automatic instrumentation of the code. But, types are complex in Prolog. We also have the notion of instantiation and (closely related) modes and determinism. This requires both the notion of a type (e.g., list) as well as a term that is compatible with a list, in this case sometimes called a partial list.

The Ciao team did a lot of work on this. I always had the, possibly not so well informed opinion, the assertion language is too complicated. Possibly it is not so bad (experiences?), possibly it is possible to find something more lightweight.

1 Like