-
Notifications
You must be signed in to change notification settings - Fork 367
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
Tables.jl uses eachcolumn
and a new PR to base does too
#1611
Comments
Tables.jl doesn't export |
Ah. It makes sense that it was designed to avoid confusion. Still a bit odd to have |
That PR implements What worries me, though, is that |
I was unaware of JuliaLang/julia#29749 when making the changes (it was submitted exactly in parallel). Acutally initially I have proposed something like Given
This is a simple fix and I can push a PR that does this. The only problem is that writing |
Yeah, that's the main problem. I'm really tempted to deprecate |
Actually - having thought of that - if we want to allow |
My idea was that we would eventually remove these methods based on |
OK, so do we move forward with what I have outlined? |
Actually, if we inline |
Good point. This is correct as constant propagation will be performed and the outer calling function shall be type-stable. |
This seems too verbose for what might be a common operation. Why not have them change their iterator to Could we use a wrapper |
This is how it should work. I will doublecheck this when submitting a PR. Should we go forward with this now or wait for JuliaLang/julia#29749 to be decided? |
I guess you can prepare a PR to be ready when it's merged. Not sure whether it will be in 1.1. |
BTW, I'm not even sure type stability matters at all since iterating over columns is inherently type-unstable already. |
I will prepare a PR now. I think we should not introduce |
Closing as this is handled by #1612. |
JuliaLang/julia#29749 (comment) seeks to implement an
eachcolumn
feature onAbstractArray
types.There is a discussion about how to handle the backporting there, but we can't do
import eachcolumn
is our function is namedeachcol
.Tables.jl also calls their column iterator
eachcolumn.
Maybe we should follow suit for consistency and change the name? It's massively breaking, though.
The text was updated successfully, but these errors were encountered: