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

Fix critical bug in list() causing list truncation #339

Merged
merged 3 commits into from
May 23, 2023
Merged

Conversation

benjie
Copy link
Member

@benjie benjie commented May 23, 2023

❌ Lists A and B are equivalent if for every index I in A, A[I] = B[I].
✔️ Lists A and B are equivalent if they have the same length and for every index I in A, A[I] = B[I].

Oops 😳

This only affected "lists of constants" (that is to say list() steps where every entry in the list is a constant() step). These typically only come from the input values, so { foo(a: [1, 2], b: []) } would be "optimized" to be equivalent to { foo(a: [], b: []) }.

@benjie benjie merged commit d12d878 into planning May 23, 2023
1 check passed
@benjie benjie deleted the critical-bugfix branch May 23, 2023 14:10
@benjie benjie added this to the V5 beta milestone May 24, 2023
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.

None yet

1 participant