-
-
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
CartesianIndices (breaking?) change in 1.6.0-rc1 #39589
Comments
Reading a bit more closely, looks likely to be caused by #37829. I wonder if my single-integer usage of CartesianIndices was "supported" in the first place? |
Edit: Sorry, I misread your example, the two behaviors are definitely inconsistent. |
The 1.5 behavior seems to have been inconsistent:
That can't be right, but I'm not sure what was intended. |
Thanks for investigating guys. If I was relying on some dodgy / broken behaviour in 1.5, I'm happy to switch to an explicit one-element range, i.e. |
Yes, that behavior was definitely unintentional and buggy. Integers should always describe 1-based lengths; ranges should always specify indices. Sorry this caught you out — perhaps we should indeed add a NEWS item. |
FYI, I made that change intentionally in #37829 (comment), and also to |
Ah, nicely done, I hadn't spotted that. |
I have added a NEWS/HISTORY item for the change: #39784 |
* Add HISTORY.md entry for change noted in #39589 * Rephrase Following mbauman’s suggestion: #39784 (comment) Co-authored-by: Matt Bauman <mbauman@gmail.com>
…9784) * Add HISTORY.md entry for change noted in JuliaLang#39589 * Rephrase Following mbauman’s suggestion: JuliaLang#39784 (comment) Co-authored-by: Matt Bauman <mbauman@gmail.com>
…9784) * Add HISTORY.md entry for change noted in JuliaLang#39589 * Rephrase Following mbauman’s suggestion: JuliaLang#39784 (comment) Co-authored-by: Matt Bauman <mbauman@gmail.com>
Close since this is already solved: this change is considered a bug fix with associated NEWS entry. |
Something has changed here:
Is this expected? It is breaking some of my code, and I can't find anything obvious in NEWS that describes this.
The text was updated successfully, but these errors were encountered: