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

Show type name only when the the struct type is too complex? #9

Closed
findmyway opened this issue Dec 1, 2021 · 0 comments
Closed

Show type name only when the the struct type is too complex? #9

findmyway opened this issue Dec 1, 2021 · 0 comments

Comments

@findmyway
Copy link
Contributor

findmyway commented Dec 1, 2021

max_indent_reached(io, length(string(t)) + 2) && return print(io.bland_io, " … )")

image

So now we simply show (...) when t is too long. How about trying to display typeof(t) only when it exceeds the max length?

findmyway added a commit to findmyway/GarishPrint.jl that referenced this issue Dec 1, 2021
findmyway added a commit to findmyway/GarishPrint.jl that referenced this issue Dec 2, 2021
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

1 participant