-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Slice notation with negative indices #18662
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
Comments
|
I don't think it's a great idea to have an |
OK, I did not understand that. |
I use this feature in Python a lot. The difference is: does one want to write the name of a variable a second time just to access it's tail? For short demos, it's okay, but for meaningful, not super-short variable names it gets annoying. Example: instead of
one would have
Is there something I'm missing out on? Can this be implemented without a great runtime impact? |
internal: Sync from downstream
Compilation succeeds without any warning.
-1 is silently converted to an unsigned int, and I get an executable that panics with
index 1 and/or 18446744073709551615 in
hahado not lie on character boundary
I think there should be a compilation warning or error.
The text was updated successfully, but these errors were encountered: