-
-
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
Safe non-traditional array indexing #16973
Comments
@timholy, where are we at on this? |
As far as I'm concerned, all important known issues are closed by one merged PR (#17137) and two open PRs: #17228 and #17355. It would be nice to have a better deprecation for However, I've gotten hints of some discontent, so most importantly see #17338 (comment) and #17228 (comment). FYI the DataArrays breakage is already fixed at JuliaStats/DataArrays.jl#205, with tkelman/DataArrays.jl#2 cued to improve the fix. |
Oh, if folks are giving this some attention but need some time, my "merge by Monday" can obviously go on hold. I put a deadline on it because it seems like a bad idea to let them sit until moments before julia-0.5RC and THEN decide to either merge or revert (either of which could be disruptive). We should decide soon, but it doesn't have to be today. |
Since @wildart seems to be coming to completion, I'm inclined to start hitting "merge" on my PRs. Speak now or... |
I think @JeffBezanson may have a few reservations, so maybe give him a chance to comment. |
OK, that's the feedback I was waiting for. Silence is very hard to interpret. |
#17228 seems ready for review. It also includes the revised deprecation for I guess there is one potential last dangling issue: what to do, if anything, about #16378? The fundamental problem is that |
For dictionaries, enumerate adds a one-based index. That is not really comparable to arrays since dictionaries iterate over What about |
With reference to #16260 (comment):
size
andlength
throw an error for arrays with unconventional indexing@arraysafe
to rewrite calls tosize
andlength
to something that doesn't throw an errorallocate_for
intosimilar
The text was updated successfully, but these errors were encountered: