Skip to content

Conversation

@DougGregor
Copy link
Member

  • Explanation: Early macro proposals differentiated syntax between "function-like" and "value-like" macros. However, we settled on always making macros "function-like", so remove the "value-like" syntax, which causes the parser and syntax tree to be more complex than necessary (and not represent the actual language grammar).
  • Scope: Parser and syntax tree are affected, but no clients ever used this syntax.
  • Risk: Very low; it's eliminating parsing and syntax tree support for an experimental syntax that is no longer in use.
  • Reviewer: @ahoppen

(cherry picked from commit 7200b19)
This `macro m: T` macro syntax was present in early macro proposals,
but has not been used in a while and isn't in the accepted form. Remove
it.

(cherry picked from commit 90184c3)
(cherry picked from commit baa087e)
@DougGregor DougGregor requested a review from ahoppen as a code owner March 30, 2023 21:58
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit f2e4643 into swiftlang:release/5.9 Mar 31, 2023
@DougGregor DougGregor deleted the macro-decl-representation-5.9 branch March 31, 2023 00:45
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