Skip to content

Make Bernoulli::new return a Result - #803

Merged
dhardy merged 1 commit into
rust-random:masterfrom
vks:bernoulli-no-panic
May 23, 2019
Merged

dhardy merged 1 commit into
rust-random:masterfrom
vks:bernoulli-no-panic

Conversation

@vks

@vks vks commented May 22, 2019

Copy link
Copy Markdown
Contributor

Fixes #799.

@vks

vks commented May 22, 2019

Copy link
Copy Markdown
Contributor Author

I'm not sure whether a breaking change makes sense while deprecating (instead of removing) the other panicking distributions.

@dhardy dhardy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. As you said before, I don't think this constructor gets called directly too often. We are allowed to make breaking changes in minor releases, and I think this one is worth doing.

I believe it's ready for merging?

@vks

vks commented May 23, 2019

Copy link
Copy Markdown
Contributor Author

Yeah, I also think this is ready.

@dhardy
dhardy merged commit 7f56d4e into rust-random:master May 23, 2019
@vks
vks deleted the bernoulli-no-panic branch May 23, 2019 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bernoulli constructor

2 participants