-
-
Notifications
You must be signed in to change notification settings - Fork 657
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
List pattern matching #3108
Comments
@giacomocavalieri This is a duplicate of #3107, but this issue is written better than mine. |
It would be a breaking change to make this an error, but we could emit a warning. |
Oh right that's unfortunate, I'll work on adding the warning then! |
Thank you |
I was wondering, what would the warning say? Does it even make sense to have a warning to suggest a different way of writing it even if the formatter already takes care of it? Something like this, maybe?
|
Maybe we could say that the syntax is deprecated? |
There's a strange pattern that I don't think should compile when pattern matching on a list:
I think it should be a parse error instead
The text was updated successfully, but these errors were encountered: