String interpolation: make it work #12
Labels
No Label
accepted
bug
clj
documentation
enhancement
errors
infrastructure
later
next
now
optimization
proposal
question
research
semantics
syntax
ux
vm
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: twc/ludus#12
Loading…
Reference in New Issue
Block a user
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?
String interpolation should be a thing.
Here's the model: Rust's friendliest version of string formatting. https://doc.rust-lang.org/std/macro.format.html, e.g.
format!("{x} + {y} = 3"); // => "1 + 2 = 3"
Only bare names can go in the interpolation points.
Unusually, here, interpolation strings will have to be parsed, and not simply passed off. But they can't be parsed like normal code. The current strategy of just chunking something into a giant string token may not be the right thing, however.
We're going to want this for Eliza! And we need to have a working Eliza in June. Let's goooooo.
Stood up, with no glaring bugs, in
265f867a71