-
-
Notifications
You must be signed in to change notification settings - Fork 473
Closed
Labels
B-APIBreakage: APIBreakage: APIE-questionParticipation: opinions wantedParticipation: opinions wanted
Milestone
Description
Hello,
distributions::Uniform::from
panics when the given range is invalid.
In contrast distributions::Bernoulli::new
returns an Option object if the given probability is invalid.
It comes to a surprise that seemingly similar functions have different API design. Is there a particular reason for this?
Metadata
Metadata
Assignees
Labels
B-APIBreakage: APIBreakage: APIE-questionParticipation: opinions wantedParticipation: opinions wanted