-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implicit error handling #25
Comments
Specifically, see the impl of |
I think our lacking an associated error type will hamper error propagation in many situations where you'd actually care about the error. I asked a summary so far question to help document this and other compromises #29 but I'm kinda guessing there. |
@burdges (1) this point is about handling specific errors, not about propagating errors (#8 and #10 are more on topic for that), and (2) if we had an associated error type then we can have no generic handling (e.g. |
It's worth glancing at the boats' new failure crate (via), but it fails |
@burdges you're off topic in this issue for the second time. See also this comment; |
#35 implements this for reseeding |
Note: interrupt handling is only required for |
Add rand_core::impls::fill_via_try_fill with handling for errors.
Add rand_core::impls::fill_via_try_fill with handling for errors.
It seems any implicit handling is being done locally (context-dependent), so no need for this issue. |
We currently have these error kinds (#9):
next_u32
etc. andfill_bytes
cannot report an error except via panic. Instead, these functions should probably:NotReady
Transient
Additionally,
There is some room for discussion here (especially how to handle
Transient
), but mostly this issue is to track implementation (PRs welcome).The text was updated successfully, but these errors were encountered: