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

Make no-index A[] check bounds like everyone else #24236

Merged
merged 3 commits into from
Oct 23, 2017
Merged

Conversation

mbauman
Copy link
Sponsor Member

@mbauman mbauman commented Oct 20, 2017

In #23628, we deprecated omitting indices over dimensions that are not of length 1. Unfortunately the 0-index case got left behind. This brings it into consistency.

In short, once this deprecation is removed, A[] will also assert that there is only one element in A.

In #23628, we deprecated omitting indices over dimensions that are not of length 1.  Unfortunately the 0-index case got left behind.  This brings it into consistency.

In short, once this deprecation is removed, `A[]` will _also_ assert that there is only one element in `A`.
@ararslan ararslan added the domain:arrays [a, r, r, a, y, s] label Oct 20, 2017
@StefanKarpinski
Copy link
Sponsor Member

I love that this is all deletion of special cases and TODOs!

@JeffBezanson
Copy link
Sponsor Member

Ready to merge?

@JeffBezanson JeffBezanson merged commit 0f498e7 into master Oct 23, 2017
@JeffBezanson JeffBezanson deleted the mb/checknoindex branch October 23, 2017 14:47
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:arrays [a, r, r, a, y, s]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants