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

Pattern support #41

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Pattern support #41

merged 2 commits into from
Jan 24, 2025

Conversation

utkn
Copy link
Contributor

@utkn utkn commented Jan 22, 2025

This PR aims to add pattern support. Patterns are only handled at the extractor side -- all the patterns are converted to either let or let mut bindings.

For example, the statement

let (mut x, y) = (1, 2)

is converted to

let param#0 = `(1, 2);
let mut x = param#0.0;
let y = param#0.1;

@utkn utkn self-assigned this Jan 22, 2025
@utkn utkn added the enhancement New feature or request label Jan 22, 2025
@utkn utkn marked this pull request as ready for review January 23, 2025 08:55
@utkn utkn requested a review from mpenciak January 23, 2025 08:55
Copy link
Contributor

@mpenciak mpenciak left a comment

Choose a reason for hiding this comment

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

Looks good!

@mpenciak mpenciak added this to the Milestone 1 milestone Jan 23, 2025
@utkn utkn merged commit 4fe3c9b into main Jan 24, 2025
6 checks passed
@utkn utkn deleted the us/pattern-support branch January 24, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants