Named patterns beginning with underscores are treated as errors #1692
AviKav
started this conversation in
Ideas & suggestions
Replies: 2 comments
-
It's not currently supported to use a discard pattern here. The right hand side of the ass operator is not a pattern, it is a variable name. We could possibly change this. What is the use case for the discard in this instance? It seems like it would do nothing. Alternatively we could raise a specific error message that says two remove the as entirely. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Converting this to a discussion as the use case isn't clear yet. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After renaming with underscore prefix:
Beta Was this translation helpful? Give feedback.
All reactions