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 indexing from the end of an infinite Range #32

Open
dloscutoff opened this issue Sep 12, 2021 · 1 comment
Open

Warn when indexing from the end of an infinite Range #32

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

Comments

@dloscutoff
Copy link
Owner

dloscutoff commented Sep 12, 2021

Using a negative index with an infinite Range returns nil, which is probably the most sensible behavior; but it should also give a warning message. Applies to @, @<, @>, H, and S with a positive rhs.

@dloscutoff dloscutoff added enhancement minor-bug Not ideal behavior, but doesn't break anything. and removed enhancement labels Sep 12, 2021
@dloscutoff dloscutoff added this to the v1.3 milestone Mar 19, 2024
@dloscutoff
Copy link
Owner Author

While I'm at it, L with an infinite range crashes the interpreter; fix that too.

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