Refactor to use a dedicated MatchPattern
enum instead of reusing Expression
#7254
Labels
enhancement
New feature or request
Problem
Match patterns introduced in #7243 parse into
Expression
s for ease of implementation but we should probably refactor this into a dedicated Pattern type in the future.Happy Case
A dedicated Pattern type would:
_ => error invalid pattern
case when matching expression types that are not supposed to be part of a pattern. E.g. a Lambda.|
or alias patterns using@
.Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: