|Playlist||schedule page slides as PDF|
Variable 1 — assignment (3:27)
PLAI§8.2. Considering mutable variables and assignment again, instead of and in contrast to mutable boxes.
Variable 2 — store (3:48)
Examples of interpreting with mutable variables and an explicit store.
Variable 3 — interp (3:30)
Implementing interp for Curly with mutable variables. See variable.rkt.
On the expressiveness of variables and boxes — they’re the same — and encoding boxes with variables.
On implementing call-by-reference, which is generally a bad idea.