Repository navigation
Move Alias-method WeightedIndex to rand_distr - #945
Conversation
Probably, but arguably this can be decided after merging this. We should probably have some release where it is just deprecated anyway. For |
|
Well, it also makes sense to tie up loose ends while we're on the topic. I'll make a change to deprecate the Regarding |
|
Right, could you still review this @vks so I don't have to "force merge"? |
|
Sorry, I forgot about this. The failure seemed unrelated, so I went ahead and merged. |
This is ~500 lines of code that we don't need in the main Rand crate IMO. (The reason
WeightedIndexis there is that it is used by theseqmodule; but thealias_methodvariant is not since it's initialisation cost makes it completely inappropriate for this single-use API.)Question: should we deprecate the
weightedpub module inrand, since this module doesn't need to be public now? (I guess this might require some re-exports or something internally, but we can do it.)Similarly, the
weightedpub module andalias_methodsub-module inrand_distrseem somewhat unnecessary.