Skip to content

yeast: Get rid of shorthand form for rules - #22626

Merged
tausbn merged 1 commit into
mainfrom
tausbn/yeast-remove-rule-shorthand
Sep 18, 2026
Merged

tausbn merged 1 commit into
mainfrom
tausbn/yeast-remove-rule-shorthand

Conversation

@tausbn

@tausbn tausbn commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Removes the

(foo bar: @baz) => quux

shorthand. This would previously expand into

(foo bar: @baz) => (quux baz: {baz})

In practice we were only using this in the tests, since most rules end up doing more complicated things than straight translations anyway.

In practice we were only using this in the tests, since most rules end
up doing more complicated things than straight translations anyway.
@tausbn tausbn added the no-change-note-required This PR does not need a change note label Sep 18, 2026
@tausbn
tausbn requested a balanced review from Copilot September 18, 2026 11:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The implementation, tests, and documentation consistently remove the shorthand form.

Review effort: Balanced
Findings: None

What changed in this PR

Removes the unused shorthand rule transform syntax from Yeast.

Changes:

  • Removes shorthand parsing and related tests.
  • Converts remaining tests to explicit templates.
  • Updates macro documentation.
File Description
shared/​yeast/​tests/​test.rs Removes shorthand tests and uses explicit templates.
shared/​yeast/​doc/​yeast.md Documents only the two supported transform forms.
shared/​yeast-macros/​src/​parse.rs Removes shorthand parsing and code generation.
shared/​yeast-macros/​src/​lib.rs Removes shorthand API documentation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tausbn
tausbn marked this pull request as ready for review September 18, 2026 12:03
@tausbn
tausbn requested a review from a team as a code owner September 18, 2026 12:03
@tausbn
tausbn merged commit 39547c7 into main Sep 18, 2026
85 of 87 checks passed
@tausbn
tausbn deleted the tausbn/yeast-remove-rule-shorthand branch September 18, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants