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

Add positional pattern matching support to Option<T> #65

Closed
DavidArno opened this issue Sep 10, 2019 · 1 comment
Closed

Add positional pattern matching support to Option<T> #65

DavidArno opened this issue Sep 10, 2019 · 1 comment

Comments

@DavidArno
Copy link
Owner

Add the means to do something like:

var result = option switch {
    (Some, x) => x,
    (None, _) => 0
};

to the Option type via a deconstructor.

Note this will be a breaking change as the current (hasValue, value) deconstructor will have to be removed.

@DavidArno DavidArno added this to the V4.0 milestone Sep 10, 2019
@DavidArno DavidArno self-assigned this Sep 10, 2019
DavidArno added a commit that referenced this issue Oct 3, 2019
…d the projects to be standard 2.0 and in turn fixed issues with depricated URL tags for nuget
@DavidArno
Copy link
Owner Author

Done.

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

No branches or pull requests

1 participant