Replies: 1 comment
-
It would be a breaking change, but it seems it's already being considered: #4460. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Current Implementation:
Proposal:
Always treat this as the wildcard even if the variable '_' is declared:
If it is impossible(breaking change), at least generate a warning if the variable '_' is already declared. To reduce the probability of unintentional changes.
Like the current implementation of wildcards in 'out' parameters:
The wildcard in 'switch' does not create any problems for using '_' as a variable too.
Beta Was this translation helpful? Give feedback.
All reactions