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

Warn when using negative index with infinite Range #47

Closed
dloscutoff opened this issue Dec 30, 2021 · 1 comment
Closed

Warn when using negative index with infinite Range #47

dloscutoff opened this issue Dec 30, 2021 · 1 comment
Labels
minor-bug Not ideal behavior, but doesn't break anything.

Comments

@dloscutoff
Copy link
Owner

If x is an infinite range (e.g. x: 2,()), indexing or slicing it with a negative number (e.g. x@-2, x@<-3, xS5) should generate a warning if warnings are turned on. Currently, it returns nil (probably the right call), but it does so without any kind of warning message.

@dloscutoff dloscutoff added the minor-bug Not ideal behavior, but doesn't break anything. label Dec 30, 2021
@dloscutoff
Copy link
Owner Author

Whoops, this is the same as #32. :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor-bug Not ideal behavior, but doesn't break anything.
Projects
None yet
Development

No branches or pull requests

1 participant