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

misleading printing of value type parameters #57189

Open
nsajko opened this issue Jan 28, 2025 · 0 comments
Open

misleading printing of value type parameters #57189

nsajko opened this issue Jan 28, 2025 · 0 comments
Labels
display and printing Aesthetics and correctness of printed representations of objects. types and dispatch Types, subtyping and method dispatch

Comments

@nsajko
Copy link
Contributor

nsajko commented Jan 28, 2025

Int32(7) in Val{Int32(7)} is shown as a mere 7:

julia> Val{Int32(7)}
Val{7}

That's not correct, however, given that Val{Int32(7)} != Val{7}.

The misleading printing behavior leads to confusion and complaints such as this one: JuliaArrays/StaticArrays.jl#1233

@nsajko nsajko added the display and printing Aesthetics and correctness of printed representations of objects. label Jan 28, 2025
@nsajko nsajko added the types and dispatch Types, subtyping and method dispatch label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display and printing Aesthetics and correctness of printed representations of objects. types and dispatch Types, subtyping and method dispatch
Projects
None yet
Development

No branches or pull requests

1 participant