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

Allow incomplete range arguments for #[](Range) macro methods #11380

Merged

Conversation

HertzDevil
Copy link
Contributor

Resolves #8570.

This affects ArrayLiteral#[], StringLiteral#[], and TupleLiteral#[]; all RangeLiterals in other macro contexts must still be complete ranges, in particular arguments to for loops. No new overloads are added.

@straight-shoota straight-shoota added this to the 1.3.0 milestone Nov 12, 2021
@straight-shoota straight-shoota merged commit 60bcac5 into crystal-lang:master Nov 15, 2021
@HertzDevil HertzDevil deleted the feature/macro-nilable-ranges branch November 17, 2021 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow endless ranges in macros
3 participants