Assignment with list patterns does not work. #459
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#459
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Gives the error:
Note that with tuples
x, (y, z) = 1, (2, 3)
, it does work.This is not easy to support - the codegen part could be very complicated - R.H.S. could contain a list whose length cannot be determined at compile time, this might need an LLVM for loop to assign the elements of the input list to different vars on L.H.S + assertion on the input list's length.
Assignment with list pattern matching does not work.to Assignment with list patterns does not work.