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

Feature/array spread #447

Merged
merged 4 commits into from
Sep 30, 2024

Conversation

TobiasWienand
Copy link
Contributor

Implements compilation of arrays with spread operator and implements various tests

Copy link
Collaborator

@saelo saelo left a comment

Choose a reason for hiding this comment

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

Cool, looks good, just one nit!

return emit(CreateArray(numInitialValues: elements.count), withInputs: elements).output
if spreads.contains(true) {
return emit(CreateArrayWithSpread(spreads: spreads), withInputs: elements).output
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: can the else go onto this line? Also I think the indention is off a bit, the if seems to be more intended than the else

@saelo saelo merged commit 0e20cd5 into googleprojectzero:main Sep 30, 2024
2 of 3 checks passed
@saelo
Copy link
Collaborator

saelo commented Sep 30, 2024

Thanks!

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.

2 participants