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

SVector type printing changed? #1049

Closed
nhz2 opened this issue Jun 27, 2022 · 3 comments · Fixed by JuliaArrays/StaticArraysCore.jl#4
Closed

SVector type printing changed? #1049

nhz2 opened this issue Jun 27, 2022 · 3 comments · Fixed by JuliaArrays/StaticArraysCore.jl#4

Comments

@nhz2
Copy link
Contributor

nhz2 commented Jun 27, 2022

For some reason string(SVector) is longer in version 1.5.0.

With StaticArrays 1.4.7

julia> string(SVector)
"SVector"

With StaticArrays 1.5.0

julia> string(SVector)
"SArray{Tuple{S}, T, 1, S} where {S, T}"
@mateuszbaran
Copy link
Collaborator

That's because currently SVector is not exported from StaticArraysCore.jl. I will fix that.

@fredrikekre
Copy link
Member

Why is type alias printing only happening for exported variables? I find this really strange for two reasons: 1) Why is it seemingly active only for exported variables? 2) SVector is (re-)exported by StaticArrays.

@mateuszbaran
Copy link
Collaborator

I don't know why it was designed that way. Relevant PR: JuliaLang/julia#36107.

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

Successfully merging a pull request may close this issue.

3 participants