-
Notifications
You must be signed in to change notification settings - Fork 1
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
match syntax fails when used with raw Result instead of Failure/Success #56
Comments
Hi 👋🏾 First of all, thanks again for your valuable feedback :) Context
To make available the In typed aliases we add specific value for success and failure depending on its semantic:
This is why match pattern is working when you use the alias What happens when the
|
Kudos to you for taking the time to explain it in detail 👍
In that case I would suggest removing raw Right now I land at Getting started and the first things it says me are "new type class, the |
From the easiest to the most difficult.
Agree. Although it is referred to in the documentation, it may be necessary to be more explicit. match issueWe have tested some of these options, but in some of these combinations they have problems in the typing. The best option found was the |
First Check
Description
Usage > Detail docs mention this:
While mostly convenient, this code does not work when the
result
variable was constructed not withFailure(NoSuchKey())
but withResult(failure=NoSuchKey())
:Getting rid of error types in
case
statements does not help:match
and its magics are too new tech for me, so I cannot provide any insight on why isn't it working or what could be amended.Operating System
Linux
Operating System Details
No response
meiga Version
1.8.3
Python Version
python --version
Additional Context
No response
The text was updated successfully, but these errors were encountered: