We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In a structural type system I should expect to use Match<stream<int>> to do this:
Match<stream<int>>
... -> match:data // pass stream to data {last: true} -> match:case[0] -> :stop
That is it should match on the partial contents of the struct. What I actually got is:
{"data": 50, "idx": 0, "last": true} panic: runtime error: comparing uncomparable type runtime.MapMsg
The text was updated successfully, but these errors were encountered:
Seems like both Eq (if we gonna have one) and Match should implement this
Eq
Match
Sorry, something went wrong.
@Catya3 is this how Rust works?
{last: true} -> match:case[0] -> :stop
@Catya3 do we need this issue if we have #613 ?
Is this issue about something else except structures? Is (partial) pattern matching working in e.g. Rust for smt else?
No I think this can be closed
No branches or pull requests
In a structural type system I should expect to use
Match<stream<int>>
to do this:That is it should match on the partial contents of the struct. What I actually got is:
{"data": 50, "idx": 0, "last": true}
panic: runtime error: comparing uncomparable type runtime.MapMsg
The text was updated successfully, but these errors were encountered: