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 x..^* range is used as subscript #3021

Closed
wants to merge 1 commit into from

Conversation

taboege
Copy link
Contributor

@taboege taboege commented Jun 25, 2019

Excluding the last element of an infinite range subscript has no effect
and is likely a thinko. Print a warning and suggest to use *-2 as upper
endpoint to omit the last item.

Fixes #3010

Excluding the last element of an infinite range subscript has no effect
and is likely a thinko. Print a warning and suggest to use *-2 as upper
endpoint to omit the last item.

Fixes rakudo#3010
@lizmat
Copy link
Contributor

lizmat commented Jun 25, 2019

Please refrain from merging until we have a decision: Raku/problem-solving#50

@AlexDaniel
Copy link
Contributor

Yeah, I'll just close it for now. Once Raku/problem-solving#50 is resolved we can come back to this.

@AlexDaniel AlexDaniel closed this Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1..^* needs to give a warning
3 participants