-
Notifications
You must be signed in to change notification settings - Fork 127
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
Toplevel answers for long strings are not correct #2676
Comments
Really stupid idea, but what about: ?- Ls = "This is a rather long string which is shortened by the toplevel.".
phrase(("This is a rather long s",...), Ls). It's more general than the query, but can be pasted back (assuming |
Another solution would be to display truncated strings similarly to other lists:
|
Pasting this back results in a non-terminating query. So if at all, it would be rather |
Some examples of double bar notation:
Also, it would be now possible to split a string into multiple lines by still allowing
|
Currently, we get:
The answer suggests that
Ls
is"This is a rather lo ..."
, but that is not true.Shortening of long strings must be done in such a way that it is clear that this is not the actual solution.
The suggestion is to take inspiration from Ciao, using
||
to separate the shown prefix from the ellipsis.Example:
Such an answer cannot be pasted back, which is the point.
The text was updated successfully, but these errors were encountered: