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

else branch of @when #40

Closed
thautwarm opened this issue Feb 10, 2019 · 0 comments · Fixed by #56
Closed

else branch of @when #40

thautwarm opened this issue Feb 10, 2019 · 0 comments · Fixed by #56
Assignees
Labels
core infrastructures and some standard impl enhancement New feature or request
Milestone

Comments

@thautwarm
Copy link
Owner

Currently @when can only handle with a single branch with multiple destructuring, but can do nothing to the scenarios an else is needed. It turns out @when is not an equivalent of if-let in Rust.

The enhancement should be performed as soon as possible, but the obstacle is the syntax design.
I don't have an idea about how to make an elegant and concise one as if-let equivalent.

Any suggestions are welcome.

@thautwarm thautwarm added the enhancement New feature or request label Feb 10, 2019
@thautwarm thautwarm added this to the 0.3.0 milestone Feb 10, 2019
@thautwarm thautwarm self-assigned this Feb 10, 2019
@thautwarm thautwarm added the core infrastructures and some standard impl label Feb 10, 2019
@thautwarm thautwarm modified the milestones: 0.3.0, 0.3.1 May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core infrastructures and some standard impl enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant