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

Add HashLiteral#has_key? and NamedTupleLiteral#has_key? #14890

Merged

Conversation

kamil-gwozdz
Copy link
Contributor

@kamil-gwozdz kamil-gwozdz commented Aug 11, 2024

This PR adds HashLiteral#has_key? and NamedTupleLiteral#has_key?.

closes #14841

@Blacksmoke16 Blacksmoke16 linked an issue Aug 11, 2024 that may be closed by this pull request
@kamil-gwozdz kamil-gwozdz force-pushed the add-has-key-to-macro-literals branch 5 times, most recently from 0443c58 to 6c29a7a Compare August 11, 2024 19:07
@kamil-gwozdz kamil-gwozdz marked this pull request as ready for review August 11, 2024 19:07
@kamil-gwozdz kamil-gwozdz marked this pull request as draft August 11, 2024 19:08
@kamil-gwozdz kamil-gwozdz force-pushed the add-has-key-to-macro-literals branch 2 times, most recently from ac66a97 to 523d482 Compare August 11, 2024 19:10
@Blacksmoke16
Copy link
Member

Thanks for the PR! In the future, as called out in https://github.com/crystal-lang/crystal/blob/master/CONTRIBUTING.md#making-good-pull-requests, could you not force push? Doesn't matter too much in this case as it was a WIP branch, but it can make the review process harder if force pushes happen with pending comments and such. We squash merge PRs so no need to worry about having a lot of commits.

src/compiler/crystal/macros/methods.cr Outdated Show resolved Hide resolved
src/compiler/crystal/macros/methods.cr Outdated Show resolved Hide resolved
src/compiler/crystal/macros/methods.cr Outdated Show resolved Hide resolved
@straight-shoota straight-shoota changed the title add has_key? to HashLiteral and NamedTupleLiteral Add HashLiteral#has_key? and NamedTupleLiteral#has_key? Aug 12, 2024
@kamil-gwozdz
Copy link
Contributor Author

Thanks for the reviews. Unfortunately, i can't push to crystal-lang:master. Can somebody merge this PR for me?

@straight-shoota
Copy link
Member

We'll merge the PR when it gets accepted. For that we still need an approval from another Core Team member.
See https://github.com/crystal-lang/crystal/blob/master/CONTRIBUTING.md#accepting-a-pull-request for the workflow.

@straight-shoota straight-shoota added this to the 1.14.0 milestone Aug 18, 2024
@straight-shoota straight-shoota merged commit a9e0457 into crystal-lang:master Aug 19, 2024
65 checks passed
@kamil-gwozdz kamil-gwozdz deleted the add-has-key-to-macro-literals branch August 20, 2024 08:00
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.

Add has_key? to NamedTupleLiteral and HashLiteral
6 participants