Lower let/var bindings and reassignment #82

Open
opened 2026-10-04 02:37:22 +00:00 by jacksonopp · 0 comments
Owner

Depends on #3.

Map Twill's let/var bindings to Cranelift Variables (via cranelift-frontend).

Codegen needs SSA-form variable slots regardless of let vs var - the checker already enforces the mutability distinction statically (immutable let can't be reassigned), so this issue is purely about the lowering mechanics: declaring variables, writing initial values, and handling reassignment for var.

Depends on #3. Map Twill's `let`/`var` bindings to Cranelift `Variable`s (via `cranelift-frontend`). Codegen needs SSA-form variable slots regardless of `let` vs `var` - the checker already enforces the mutability distinction statically (immutable `let` can't be reassigned), so this issue is purely about the lowering mechanics: declaring variables, writing initial values, and handling reassignment for `var`.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jacksonopp/twill#82
No description provided.