Skip to content

Make interpolation dispatch on result type#9626

Open
rtfeldman wants to merge 14 commits into
mainfrom
result-owned-interpolation
Open

Make interpolation dispatch on result type#9626
rtfeldman wants to merge 14 commits into
mainfrom
result-owned-interpolation

Conversation

@rtfeldman

Copy link
Copy Markdown
Contributor

String interpolation now checks as result-owned static dispatch, so unsuffixed interpolations constrain the expression result with from_interpolation and suffixed interpolations call the suffix type's associated function directly. This lets types like Regex return Try from their own interpolation verifier while Try forwards interpolation dispatch to its ok type. The change also makes from_quote accept Str instead of List(U8), removes the old interpolation side table, and updates snapshots, design notes, and serialization coverage for the new CIR shape.

@rtfeldman rtfeldman marked this pull request as ready for review June 13, 2026 02:11
@rtfeldman rtfeldman marked this pull request as draft June 13, 2026 05:18
@rtfeldman rtfeldman marked this pull request as ready for review June 13, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant