-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
mention getindex()
shouldn't return a "view"
#47099
Conversation
While the added statement is correct, I don't think it addresses the issue. |
isn't the issue we agree it should never be a view but just didn't mention it? what DataFrames.jl does is not our issue (technically) |
Never mind, I missed the second file in the PR. Yes, the issue is basically whether |
can we merge this? |
I'd like a few more eyes on it. @KristofferC Is this reasonable to merge? |
Shouldn't this be in the documentation for |
I'd prefer the phrasing to suggest what to do instead of warning against what not to do. A |
@KristofferC this is for developers. for base vectors, |
Can we revive this? I hope my suggestions can help addressing the comments. |
@@ -1256,6 +1256,9 @@ end | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about specifying A::AbstractArray
on the line above while we're at it? The description below isn't guaranteed to match non-array objects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that page is specific to array interface, i think thats implied
Co-authored-by: Milan Bouchet-Valat <[email protected]>
Co-authored-by: Milan Bouchet-Valat <[email protected]>
+1 |
getindex()
shouldn't return a "view"
Co-authored-by: Tim Holy <[email protected]>
Thanks! |
fix #47078 --------- Co-authored-by: Milan Bouchet-Valat <[email protected]> Co-authored-by: Tim Holy <[email protected]>
fix #47078