-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I need to check that patterns are only written where they are allowed. These are the allowed places:
- As function parameters (named and anonymous)
- Named
- Anonymous
- In the left hand side of
caseexpression rules - In the left hand side of declarations
- In the left hand side of assignments
- As
forloop variables - In list comprehensions
- In set comprehensions
They are forbidden everywhere else. Currently, when a pattern is written somewhere else, the evaluator panics. I don't like that. Specific enough error messages should be shown instead.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels