Skip to content

More readable output with portray_clause #23

@maemre

Description

@maemre

SWI-Prolog (and maybe other Prolog engines) provides a predicate named portray_clause for pretty-printing clauses. I think we can use it instead of write_term to get a more readable output, which may help with debugging both the compiler and the unsafe clauses by making the output easier to navigate.

portray_clause will also simplify the code in io.pl getting rid of copying and using numbervars etc.

I can create a pull request for this next week if you are on board with such a change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions