Skip to content

Lex/parse support for ->?, :?, and form literals#6695

Merged
dwblaikie merged 2 commits intocarbon-language:trunkfrom
geoffromer:forms-parse
Feb 7, 2026
Merged

Lex/parse support for ->?, :?, and form literals#6695
dwblaikie merged 2 commits intocarbon-language:trunkfrom
geoffromer:forms-parse

Conversation

@geoffromer
Copy link
Contributor

See #5389 (pending) for the language design.

@geoffromer geoffromer requested a review from a team as a code owner February 5, 2026 20:03
@geoffromer geoffromer requested review from dwblaikie and removed request for a team February 5, 2026 20:03
@geoffromer geoffromer marked this pull request as draft February 5, 2026 21:02
@geoffromer geoffromer marked this pull request as ready for review February 6, 2026 16:56
@geoffromer
Copy link
Contributor Author

OK, this is ready for review now.

Copy link
Contributor

@dwblaikie dwblaikie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than some varying-degrees-of-unrelated (some that had to come before this patch, like value -> val renaming, some that seem more drive-by/could've come before or after) changes that'd be great to separate things like that in the future, looks good!


interface I {
let val:! array(i32, 1);
let value:! array(i32, 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably would've been nice if this val->value were a separate cleanup patch to reduce the changes in this patch/make it easier to focus on the semantic changes.

// 2. ExprInPostfixLoop
//
// [
// array
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be good to keep unrelated changes in separate patches.

@dwblaikie dwblaikie added this pull request to the merge queue Feb 7, 2026
Merged via the queue into carbon-language:trunk with commit 7938d9a Feb 7, 2026
10 checks passed
@geoffromer geoffromer deleted the forms-parse branch February 9, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants