You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Currently
@when
can only handle with a single branch with multiple destructuring, but can do nothing to the scenarios anelse
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.
The text was updated successfully, but these errors were encountered: