Skip to content
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

catch-all '*' or discard '_' for patterns? #609

Closed
lachbaer opened this issue May 20, 2017 · 3 comments
Closed

catch-all '*' or discard '_' for patterns? #609

lachbaer opened this issue May 20, 2017 · 3 comments

Comments

@lachbaer
Copy link
Contributor

In https://github.com/dotnet/csharplang/blob/master/proposals/patterns.md the discard pattern is defined as a single underscore _, but in the examples a star * is used as the catch-all pattern. However, the * is not defined in that preliminary specification. What's the current status?

@yaakov-h
Copy link
Member

I thought it was initially *, but then changed to _?

@lachbaer
Copy link
Contributor Author

Filed a PR. Let's see if it becomes accepted.

@aluanhaddad
Copy link

Yes this was changed. See dotnet/roslyn#16674

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants