expect(..) could return the value instead of void #9
tarcisiofischer
started this conversation in
Ideas
Replies: 1 comment
-
Hi @tarcisiofischer, thank you for the suggestion; this seems like a reasonable improvement. Funny thing is that I modeled a lot of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As in rust, would be nice if
expect(...)
would return the value instead of void, so that I could make things likeAFAIK, the way of doing this today is to do this instead:
Implementation
I didn't test, but I guess would be something like the code below. Inspired but the current code
Please let me know if this makes sense.
Beta Was this translation helpful? Give feedback.
All reactions