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

feat(compiler): elif let statement #3888

Merged
merged 14 commits into from
Aug 25, 2023
Merged

feat(compiler): elif let statement #3888

merged 14 commits into from
Aug 25, 2023

Conversation

marciocadev
Copy link
Collaborator

@marciocadev marciocadev commented Aug 19, 2023

Checklist

  • Title matches Winglang's style guide
  • Description explains motivation and solution
  • Tests added (always)
  • Docs updated (only required for features)
  • Added pr/e2e-full label if this feature requires end-to-end testing

By submitting this pull request, I confirm that my contribution is made under the terms of the Wing Cloud Contribution License.

@marciocadev marciocadev requested a review from a team as a code owner August 19, 2023 12:21
Copy link
Contributor

@yoav-steinberg yoav-steinberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! added some minor comments, mainly the issue of per-evaluating the elif statements.

examples/tests/valid/optionals.w Outdated Show resolved Hide resolved
libs/wingc/src/jsify.rs Outdated Show resolved Hide resolved
libs/wingc/src/jsify.rs Outdated Show resolved Hide resolved
libs/wingc/src/jsify.rs Outdated Show resolved Hide resolved
libs/wingc/src/type_check.rs Show resolved Hide resolved
@monadabot monadabot added the ⚠️ pr/review-mutation PR has been mutated and will not auto-merge. Clear this label if the changes look good! label Aug 23, 2023
libs/tree-sitter-wing/grammar.js Outdated Show resolved Hide resolved
libs/wingc/src/lsp/hover.rs Outdated Show resolved Hide resolved
@MarkMcCulloh MarkMcCulloh removed the ⚠️ pr/review-mutation PR has been mutated and will not auto-merge. Clear this label if the changes look good! label Aug 24, 2023
@monadabot monadabot added the ⚠️ pr/review-mutation PR has been mutated and will not auto-merge. Clear this label if the changes look good! label Aug 24, 2023
@MarkMcCulloh MarkMcCulloh removed the ⚠️ pr/review-mutation PR has been mutated and will not auto-merge. Clear this label if the changes look good! label Aug 24, 2023
mergify bot pushed a commit that referenced this pull request Aug 24, 2023
…and `let` (#3960)

@MarkMcCulloh, your review on PR #3888 made me realize that if I put more than one space between `if let`, it generates errors.

I've updated the `if let` to work even with extra spaces.

Closes #3959 

## Checklist

- [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
- [x] Description explains motivation and solution
- [x] Tests added (always)
- [ ] Docs updated (only required for features)
- [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
@mergify
Copy link
Contributor

mergify bot commented Aug 25, 2023

Thanks for contributing, @marciocadev! This PR will now be added to the merge queue, or immediately merged if marciocadev/elif-let is up-to-date with main and the queue is empty.

mergify bot added a commit that referenced this pull request Aug 25, 2023
mergify bot added a commit that referenced this pull request Aug 25, 2023
@monadabot monadabot added the ⚠️ pr/review-mutation PR has been mutated and will not auto-merge. Clear this label if the changes look good! label Aug 25, 2023
@marciocadev marciocadev removed the ⚠️ pr/review-mutation PR has been mutated and will not auto-merge. Clear this label if the changes look good! label Aug 25, 2023
@mergify
Copy link
Contributor

mergify bot commented Aug 25, 2023

Thanks for contributing, @marciocadev! This PR will now be added to the merge queue, or immediately merged if marciocadev/elif-let is up-to-date with main and the queue is empty.

mergify bot added a commit that referenced this pull request Aug 25, 2023
mergify bot added a commit that referenced this pull request Aug 25, 2023
@mergify mergify bot merged commit d4ae09d into main Aug 25, 2023
@mergify mergify bot deleted the marciocadev/elif-let branch August 25, 2023 16:12
@monadabot
Copy link
Contributor

Congrats! 🚀 This was released in Wing 0.26.2.

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.

5 participants