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

@SArray is sometimes not consistent with Base #1215

Open
hyrodium opened this issue Oct 30, 2023 · 0 comments
Open

@SArray is sometimes not consistent with Base #1215

hyrodium opened this issue Oct 30, 2023 · 0 comments

Comments

@hyrodium
Copy link
Collaborator

julia> using StaticArrays

julia> @SArray [1:3;]
1-element SVector{1, UnitRange{Int64}} with indices SOneTo(1):
 1:3

julia> [1:3;]
3-element Vector{Int64}:
 1
 2
 3

julia> @SArray [(1:3)...]
1-element SVector{1, Tuple{Int64, Int64, Int64}} with indices SOneTo(1):
 (1, 2, 3)

julia> [(1:3)...]
3-element Vector{Int64}:
 1
 2
 3

I'm not sure we need to support these calls, and it would be better to throw errors than the current behaviors.

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