Skip to content
New issue

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

max_depth/1 option incorrect #261

Open
UWN opened this issue Jul 13, 2023 · 2 comments
Open

max_depth/1 option incorrect #261

UWN opened this issue Jul 13, 2023 · 2 comments

Comments

@UWN
Copy link

UWN commented Jul 13, 2023

There are two different objectives. One is that the output should be nice and consistent. That is desirable. But then there is a more fundamental issue: Sometimes the output is just incorrect. That is, the output cannot be used to (partially) reconstruct the original term. Here is such an example:

?- write_term_to_chars([[_|_]|_],[max_depth(1)],Chs).
   Chs = "[[...|[ ...]]|_2]", unexpected.
?- write_term([[_|_]|_],[max_depth(1)]).
[[...|[ ...]]|_2]   true, unexpected.
@infradig
Copy link
Contributor

infradig commented Jul 13, 2023 via email

@UWN
Copy link
Author

UWN commented Jul 18, 2023

Back at this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants