Lower let/var bindings and reassignment #82
Labels
No labels
bug
design
epic
risk
user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jacksonopp/twill#82
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Depends on #3.
Map Twill's
let/varbindings to CraneliftVariables (viacranelift-frontend).Codegen needs SSA-form variable slots regardless of
letvsvar- the checker already enforces the mutability distinction statically (immutableletcan't be reassigned), so this issue is purely about the lowering mechanics: declaring variables, writing initial values, and handling reassignment forvar.