-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency in allowed LHS between var decl statement and let expression #129
Comments
There are some design decisions to be made here. Currently, a statement beginning with
The concrete gotcha raised by this issue is that a
If If While we're at it, it seems natural to want pattern matching on the LHS of a
This has its own problems though. For example, I think it would make it impossible to shadow the name of a parameterless constructor. For now, I think I will see if I can get arbitrary patterns working in |
Tuples can be matched in both var decl statements and let expressions:
However, user declared datatypes with one constructor cannot be matched in var decl statements, only let expressions.
The text was updated successfully, but these errors were encountered: