-
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
Improve error handling with Optional<Fallible<T>> #95
Labels
Milestone
Comments
oscbyspro
added
addition
oh, so shiny!
brrr
such code, much wow
maybe
to do, or not to do?
subtraction
huh? where did it go?
labels
Sep 21, 2024
I'll make |
oscbyspro
changed the title
Return Optional<Fallible<T>> in more cases
Use: Optional<Fallible<T>>
Oct 11, 2024
oscbyspro
changed the title
Use: Optional<Fallible<T>>
Improve: error handling with Optional<Fallible<T>>
Oct 11, 2024
Closed
oscbyspro
changed the title
Improve: error handling with Optional<Fallible<T>>
Improve error handling with Optional<Fallible<T>>
Oct 11, 2024
oscbyspro
added a commit
that referenced
this issue
Oct 12, 2024
oscbyspro
added a commit
that referenced
this issue
Oct 12, 2024
Note that the optional part doesn't affect the assembly as long as you |
oscbyspro
added a commit
that referenced
this issue
Oct 21, 2024
This rewrite introduces safe division protocol requirements with proper division semantics. I'm sure these methods can be derived from unsafe requirements, but this is a good place to start. I'll may consider unsafe requirements if the overhead of safety cannot be optimized away. Something, something, sufficiently smart compiler.
oscbyspro
added a commit
that referenced
this issue
Nov 20, 2024
oscbyspro
added a commit
that referenced
this issue
Nov 20, 2024
* Rework binary integer description error-handling using (#95). * Cleanup.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
BinaryInteger.leniently(Swift.BinaryFloatingPoint)
is an excellent use case forOptional<Fallible<T>>
. Thenil
anderror
both have distinct and sensible interpretations and the optional part doesn't even increase the size of the return type's memory layout.I have previously hoisted some
Fallible<T>
return types by mapping errors toOptional<T>
. I think it's worth consideringOptional<Fallible<T>>
as an alternative because it is more powerful. Tangentially, I could perhaps do something similar with infinite-by-finite division (#69).The text was updated successfully, but these errors were encountered: